Accepted answer

you're correct, the code transpiled by babel will use react.

you can check for yourself using the "try it out" feature of the babel website to see what your code will be transpiled to.

in your case, you'll get

"use strict";

module.exports = react.createelement(
    { path: "/", component: app },
    react.createelement(indexroute, { component: home }),
        { path: "/repos", component: repos },
        react.createelement(route, { path: "/repos/:username/:reponame", component: repo })
    react.createelement(route, { path: "/about", component: about })

as you can see, react.createelement is called multiple times.

Related Query

More Query from same tag