Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- export const getEditableTweet = (state) => {
- return state.allIds.find(id => state.byId[id].editable)
- }
- //you will call this function from your container component like this:
- getEditableTweet(state.tweets)
Add Comment
Please, Sign In to add comment