Is there anyway to output converted .jsx to a string, instead of a file?
e.g. something like:
function convert(jsx_string, function(js_string) {
}
You can use Babel programmatically if that's what you are asking. See the docs:
var result = babel.transform(jxs_string).code;
Make sure to pass the react preset to the function or include in your .babelrc.