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

react-cookie

Package Overview
Dependencies
Maintainers
1
Versions
84
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-cookie - npm Package Compare versions

Comparing version 2.0.7 to 2.0.8

2

package.json
{
"name": "react-cookie",
"version": "2.0.7",
"version": "2.0.8",
"description": "Universal cookies for React",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

@@ -68,2 +68,17 @@ <h3 align="center">

```js
// Root.jsx
import React from 'react';
import App from './App';
export default function Root() {
return (
<CookiesProvider>
<App />
</CookiesProvider>
);
}
```
```js
// App.jsx
import React, { Component } from 'react';

@@ -99,6 +114,6 @@ import { instanceOf } from 'prop-types';

return (
<CookiesProvider>
<div>
<NameForm name={name} onChange={this.handleNameChange.bind(this)} />
{this.state.name && <h1>Hello {this.state.name}!</h1>}
</CookiesProvider>
</div>
);

@@ -105,0 +120,0 @@ }

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