
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.
Routing for React JS
It's worth mentioning that this project is very much in it's infant stages, please come back soon for more documentation and features :)
var Router = require('reactr')
var Root = React.createClass({
render: function () {
return (
<div>
<RouteHandler name='parent1' />
<RouteHandler name='parent2' />
</div>
)
}
})
var Child1 = React.createClass({
render: function () {
return <h1>Child1</h1>
}
})
var Child2 = React.createClass({
render: function () {
return <h2>Child2</h2>
}
})
var Parent1 = React.createClass({
displayName: 'Parent1',
render: function () {
return (
<header>
<RouteHandler name='child1' />
</header>
)
}
})
var Parent2 = React.createClass({
displayName: 'Parent2',
render: function () {
return (
<section>
<RouteHandler name='child2' />
</section>
)
}
})
var router = new Router(
<Route path='/' handler={Root}>
<Route name='parent1' handler={Parent1}>
<Route name='child1' handler={Child1} />
</Route>
<Route name='parent2' handler={Parent2}>
<Route name='child2' handler={Child2} />
</Route>
</Route>
)
router.run(function (Handler, state) {
React.render(<Handler />, document.body)
// or
React.renderToString(<Handler />)
})
FAQs
react router
The npm package reactr receives a total of 3 weekly downloads. As such, reactr popularity was classified as not popular.
We found that reactr 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.