Write react templates in separate *.htmlx files and bundle them with browserify.