0 points

Map State to Props


dashboard

Thu Nov 12 2020 23:49:43 GMT+0000 (UTC)

Posted by @bifrost #react.js

const state = [];

// change code below this line
const mapStateToProps = (state)=>{
  return {
    messages: state
  }
}
content_copy Copy

Map State to Props