Guest User

Untitled

a guest
Dec 11th, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. export const getEditableTweet = (state) => {
  2. return state.allIds.find(id => state.byId[id].editable)
  3. }
  4.  
  5. //you will call this function from your container component like this:
  6. getEditableTweet(state.tweets)
Add Comment
Please, Sign In to add comment