Created
May 8, 2019 15:07
-
-
Save tswistak/21413b0615344ccce4488f62299483af to your computer and use it in GitHub Desktop.
InversifyJS with React Hooks, listing 3
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 'reflect-metadata'; | |
import React from 'react'; | |
import ReactDOM from 'react-dom'; | |
import { Hello } from './Hello'; | |
import { container } from './ioc'; | |
import { Provider } from './ioc.react'; | |
const App: React.FC = () => { | |
return ( | |
<Provider container={container}> | |
<div> | |
<Hello /> | |
</div> | |
</Provider> | |
); | |
}; | |
ReactDOM.render(<App />, document.getElementById('root')); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment