Created
March 4, 2019 22:33
-
-
Save farism/c334b08b68447957a935651ce6733fec to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'normalize.css' | |
import 'reset-css' | |
import '@fortawesome/fontawesome-free/css/svg-with-js.min.css' | |
import * as React from 'react' | |
import * as ReactDOM from 'react-dom' | |
import { Provider, useState } from './model/State' | |
import App from './view/App' | |
function Renderer() { | |
const { state, actions } = useState() | |
return ( | |
<Provider value={{ state, actions }}> | |
<App {...{ state, actions }} /> | |
</Provider> | |
) | |
} | |
ReactDOM.render(<Renderer />, document.getElementById('app')) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment