Install
run npm install
Npm Commands
npm run test
npm run start
npm run start:inline
Examples
Basic Example
index.js
import reactAppBootstrap from './react-app-shell';
import Shell from './shell';
Shell.hotReloadAccept = './shell';
const shell = reactAppBootstrap(document.getElementById('root'));
const app = shell(Shell);
app({
a: 2
});
shell.js
import React from 'react';
const Shell = (appState) => {
return (
<div className="container">
<h1>hello</h1>
<p>Some children here...</p>
</div>
)
}
export default Shell;