
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-render-wrapper
Advanced tools
A easy to use factory wrapper for react components. If you don't use jsx then
//instead of having something like below
var pager2 = React.render(
React.createElement(ViewPager.cls,{
views : ["page11","page22","page33"], visible:"page11"}),
document.getElementById("viewpager-container2"));
//you can expose your component to something liek below instead
var MyReactClss = require("./myreact-cls"); //React.createClass({});
MyReactClss.render({ options },"documentId" || htmlElementInstance);
MyReactClss.cls; //the actual class
MyReactClss.el({options}); //React.createElement(options) wrapper
$ npm install react-render-wrapper
var renderWrapper= require('react-render-wrapper');
module.exports = renderWrapper(React,MyReactClass);
//and clients can do
MyReactClass = require('react-myclass');
MyReactClass.render({option:'myoption'},'elementid'); //option and element id
MyReactClass.render('elementid'); //render directly with default options
MyReactClass.render($container.find('.cls-cont').get(0)); //render directly with default options
MyReactClass.el({}); //pass options for React.createElement short cut
//if you use jsx
React.render(<MyReactClass.cls/>,el);
FAQs
Simple wrapper to React.render
We found that react-render-wrapper 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.