AllenYuan

auth - selectors1

Apr 24th, 2020
396
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // child components
  2. import Banner from './Banner';
  3. import MainView from './MainView';
  4.  
  5. // modules for a redux-connected react component
  6. import React from 'react';
  7. import {connect} from 'react-redux';
  8.  
  9. // our http client
  10. import agent from '../../agent';
  11.  
  12. // extract appName from state
  13. const mapStateToProps = (state) => ({
  14.   appName: state.common.appName,
  15. });
  16.  
  17. // ...
Advertisement
Add Comment
Please, Sign In to add comment