Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
const state = {
timelines: {
home: {
tweets: [
'123',
'456',
'789',
'012'
]
}
},
tweets: {
'123': { id: '123', text: 'my tweet', user: '345', in_reply_to_tweet: '456' },
'456': { id: '456', text: 'my tweet', user: '345' },
'789': { id: '789', text: 'my tweet', user: '901' },
'012': { id: '012', text: 'my tweet', user: '234' }
},
users: {
'345': { id: '123', name: 'Jimmy' },
'901': { id: '456', name: 'Jane' },
'234': { id: '789', name: 'Julie' }
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment