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

styled-react-modal

Package Overview
Dependencies
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

styled-react-modal - npm Package Compare versions

Comparing version 1.2.1 to 1.2.2

LICENSE

2

examples/fancyModal.jsx

@@ -27,3 +27,3 @@ import React, { Component } from 'react'

toggleModal (e) {
this.setState({ isOpen: !this.state.isOpen })
this.setState((prevState) => ({ isOpen: !prevState.isOpen }))
}

@@ -30,0 +30,0 @@

{
"name": "styled-react-modal",
"version": "1.2.1",
"version": "1.2.2",
"description": "A React modal built with styled-components.",

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

@@ -66,3 +66,3 @@ # Styled React Modal

toggleModal (e) {
this.setState({ isOpen: !this.state.isOpen })
this.setState((prevState) => ({ isOpen: !prevState.isOpen }))
}

@@ -192,3 +192,3 @@

toggleModal (e) {
this.setState({ isOpen: !this.state.isOpen })
this.setState((prevState) => ({ isOpen: !prevState.isOpen }))
}

@@ -195,0 +195,0 @@

Sorry, the diff of this file is not supported yet

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