open-index/open-npm huggingface dataset:
npm package: @mizchi/react-ssr-mounter
Description: react server side template mounter
Author: mizchi
Latest version: 0.1.0

# React Server Side Rendering Mounter

```
npm install @mizchi/react-ssr-mounter --save
```

## Usage

Server Side HTML

```html
<div class='wrapper'>
  <div data-react-class='T.Hello' data-react-props='{}'></div>
</div>
```

JavaScript

```js
window.T = {}
T.Hello = React.createClass({
  render(){return <div><h1>hello</h1></div>;}
});

let {initComponents} = require('@mizchi/react-ssr-mounter');
window.addEventListener("load", () => {
  var components = initComponents();
});
```

## LICENSE

MIT