Created
May 17, 2020 19:26
-
-
Save clintonyeb/21c51f1ca5a5186483d4125507cd3dac to your computer and use it in GitHub Desktop.
Currency Screener index.js file
This file contains 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 core react libraries | |
import React from 'react'; | |
//import core react-dom | |
import ReactDOM from 'react-dom'; | |
//import css file | |
import './index.css'; | |
//Currency Card Display is the core display module of our app | |
import CurrencyCardDisplay from './Components/CurrencyCardDisplay' | |
//The <Provider /> makes the Redux store available to any nested components that have been wrapped in | |
import { Provider } from 'react-redux' | |
//import configureStore we defined in the store | |
import configureStore from './store'; | |
ReactDOM.render( | |
<Provider store={configureStore()}> | |
<CurrencyCardDisplay /> | |
</Provider>, document.getElementById('root') | |
); | |
/*Above we are rendering the CurrencyCardDisplay component wrapped in the provider which makes store (as defined in configureStore) | |
available to currencyCardDisplay */ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment