Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-serverside-wrapper

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-serverside-wrapper - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

.npmignore

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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc