##React Render Placement Loader
This will add React.render(,document.body) to your jsx for you.
It will also replace React.render(class,document.getElementById('blah')) with document.body if it exists.
You can turn that off by adding ?replace=false
.
You can also pass an optional props
object via the query.
Usage:
{
test: /\.jsx$/,
loader: 'render-placement-loader',
query: { props: { foo: 'bar' } }
}
Works with ES6 classes and React.createClass
components. Would like to use a better regex though.