You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

react-dom-parser

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-dom-parser - npm Package Compare versions

Comparing version

to
0.1.7

12

index.js

@@ -10,2 +10,4 @@ var React = require('react'),

callbacks: [],
modules: {},

@@ -24,2 +26,6 @@

onParseComplete: function(callback){
this.callbacks.push(callback);
},
register: function(module, constructor){

@@ -68,5 +74,11 @@ if(typeof module == 'object'){

}
for(var i=0;i<this.callbacks.length;i++){
this.callbacks[i]();
}
this.callbacks = [];
}
};

2

package.json

@@ -18,3 +18,3 @@ {

"main": "index.js",
"version": "0.1.6",
"version": "0.1.7",
"devDependencies": {

@@ -21,0 +21,0 @@ "react": "^0.14.2",

@@ -44,4 +44,10 @@ # React-DOM-Parser

It is also possible to retrieve a react components instance using the getByNode method
To retrieve a react components instance use the getByNode method
var myReactComponentInstance = parser.getByNode(document.getElementById('modules-wrapper'));
To check when parse is complete use the onParseComplete method
parser.onParseComplete(function(){
// Parse is complete and all components have been instantiated
});