
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
react-theatre
Advanced tools
A React component which accepts one or more React elements and allows you to navigate them in a lightbox.
Unstable: Do not use in production
A React component which accepts one or more React elements and allows you to navigate them in a lightbox.

var React = require('react');
var Theatre = require('react-theatre');
var Example = React.createClass({
render: function() {
return(
<div>
<p> Currently viewing item: {this.props.index} </p>
</div>
);
},
});
var App = React.createClass({
getInitialState: function() {
return {
theatre: true,
};
},
_toggleTheatre: function() {
this.setState({
theatre: !this.state.theatre,
});
},
_renderTheatre: function() {
if (this.state.theatre) {
return <Theatre entries={this.props.entries} openItemIndex={50} closeHandler={this._toggleTheatre} />;
}
},
render: function() {
return(
<div>
{this._renderTheatre()}
<button onClick={this._toggleTheatre}>Open</button>
</div>
);
},
});
var items = [];
for (var i = 0; i < 100; i++) {
items.push(<Example key={i} index={i} />);
}
React.render(<App entries={items} />, document.getElementById('app'));
React.PropTypes.arrayOf(React.PropTypes.element) - The only required property is an array of React elements that you want to render.React.PropTypes.func - The method to call when the user clicks on the close button.React.PropTypes.bool - Whether or not to show the top progress bar.React.PropTypes.number - The index of the entry that you wish to open initially.FAQs
A React component which accepts one or more React elements and allows you to navigate them in a lightbox.
We found that react-theatre 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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.