2.1.1 • Published 10 years ago

render-placement-loader v2.1.1

Weekly downloads
6
License
ISC
Repository
github
Last release
10 years ago

##React Render Placement Loader

npm install render-placement-loader

This will add React.render(React.createElement(Component),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 also pass an optional props object via the query.

Usage:

component: explicitly pass the name of the component you want rendered props: props to pass the component replace: true or false if React.render is found , it will be replaced by default

{
    test: /\.jsx$/,
    loader: 'render-placement-loader',
    query: { 
    	props: { foo: 'bar' },
    	component: 'ComponentName'
    }
}

Works with ES6 classes and React.createClass components.

2.1.1

10 years ago

2.1.0

10 years ago

2.0.0

10 years ago

1.1.0

10 years ago

1.0.0

10 years ago

0.5.1

10 years ago

0.5.0

10 years ago