react-serverside-wrapper
Advanced tools
Comparing version 1.0.0 to 1.0.1
16
index.js
@@ -1,3 +0,3 @@ | ||
import React from 'react'; | ||
import ReactDOM from 'react-dom'; | ||
const React = require('react'); | ||
const ReactDOM = require('react-dom'); | ||
@@ -13,8 +13,6 @@ class ServersideWrapper extends React.Component { | ||
return ( | ||
<script type="application/json" | ||
id={this.props.element + '_props'} | ||
dangerouslySetInnerHTML={{ __html: json }} | ||
></script> | ||
); | ||
return React.createElement('script', { type: 'application/json', | ||
id: this.props.element + '_props', | ||
dangerouslySetInnerHTML: { __html: json } | ||
}); | ||
} | ||
@@ -39,2 +37,2 @@ } | ||
export default ServersideWrapper; | ||
module.exports = ServersideWrapper; |
{ | ||
"name": "react-serverside-wrapper", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "For server-side react rendering. Passes properties set on the server to the client and binds your React component javascript to the dom", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5632
5
29