Skip to content

Instantly share code, notes, and snippets.

@clintonyeb
Created May 17, 2020 19:26
Show Gist options
  • Save clintonyeb/21c51f1ca5a5186483d4125507cd3dac to your computer and use it in GitHub Desktop.
Save clintonyeb/21c51f1ca5a5186483d4125507cd3dac to your computer and use it in GitHub Desktop.
Currency Screener index.js file
//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