Skip to content

Add React.render to your component automatically (used in reactview)

Notifications You must be signed in to change notification settings

zackify/render-placement-loader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

##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.

Usage:

{
    test: /\.jsx$/,
    loader: 'render-placement-loader'
}

Works with ES6 classes and React.createClass components. Would like to use a better regex though.

About

Add React.render to your component automatically (used in reactview)

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •