AllenYuan

auth - selectors2

Apr 24th, 2020
422
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // list of articles
  2. import ArticleList from './ArticleList';
  3.  
  4. import React from 'react';
  5. import { connect } from 'react-redux';
  6.  
  7. // extract articles from state
  8. const mapStateToProps = state => ({
  9.   articles: state.hoem.articles
  10. });
Advertisement
Add Comment
Please, Sign In to add comment