Skip to content

Instantly share code, notes, and snippets.

@farism
Created March 4, 2019 22:33
Show Gist options
  • Save farism/c334b08b68447957a935651ce6733fec to your computer and use it in GitHub Desktop.
Save farism/c334b08b68447957a935651ce6733fec to your computer and use it in GitHub Desktop.
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