
Product
Socket Now Supports pylock.toml Files
Socket now supports pylock.toml, enabling secure, reproducible Python builds with advanced scanning and full alignment with PEP 751's new standard.
react-modal-dumb
Advanced tools
$ npm install --save react-modal-dumb
import React from 'react';
import { render } from 'react-dom';
import Modal from 'react-modal-dumb';
const SideNav = React.createClass({
getInitialState: function() {
return {
editing: false
}
},
setEditing: function(editing) {
this.setState({editing});
},
render: function() {
const {editing} = this.state;
return (
<div>
<a href="#" id="modal-launcher" onClick={() => this.setEditing(true)}>Araç Listesi</a>
<Modal show={editing} close={()=> this.setEditing(false)}>
hello modal
</Modal>
</div>
)
}
});
render(<SideNav />, document.getElementById('hello'));
Run webpack in watch mode with the webpack.config.dev.js config file
$ git clone git@github.com:aykutyaman/react-modal-dumb.git
$ cd react-modal-dumb
$ npm install
$ npm run dev
Open http://localhost:8080/webpack-dev-server/bundle in order to see the results. Now edit lib files or examples/index.jsx to develop your awesome component.
FAQs
Fully controlled dumb react component
We found that react-modal-dumb demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket now supports pylock.toml, enabling secure, reproducible Python builds with advanced scanning and full alignment with PEP 751's new standard.
Security News
Research
Socket uncovered two npm packages that register hidden HTTP endpoints to delete all files on command.
Research
Security News
Malicious Ruby gems typosquat Fastlane plugins to steal Telegram bot tokens, messages, and files, exploiting demand after Vietnam’s Telegram ban.