File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11require ( "babel-register" ) ;
22
3- module . exports . register = ( component ) => {
3+ module . exports . register = function ( component ) {
44 const React = require ( 'react' ) ;
55 const reactDom = require ( 'react-dom' ) ;
66 const componentName = Object . keys ( component ) [ 0 ] ;
@@ -17,7 +17,7 @@ module.exports.register = (component) => {
1717 }
1818} ;
1919
20- module . exports . renderComponent = ( component , props ) => {
20+ module . exports . renderComponent = function ( component , props ) {
2121 const React = require ( 'react' ) ;
2222 const ReactDOMServer = require ( 'react-dom/server' ) ;
2323 const escapeHtml = require ( 'escape-html' ) ;
Original file line number Diff line number Diff line change 11{
22 "name" : " react-helper" ,
3- "version" : " 1.0.6 " ,
3+ "version" : " 1.0.7 " ,
44 "description" : " A helper that makes it extremely easy to add react to your node app." ,
55 "main" : " index.js" ,
66 "scripts" : {
You can’t perform that action at this time.
0 commit comments