You can display / refresh / add participants by passing to the participants
property an array of participants. See the examples below:
Displaying some participants:
participants = [
{uuid: '45689', status: 'online', name: 'Martin', email: '[email protected]'},
{uuid: '89656', status: 'online', name: 'John', email: '[email protected]'}
]
React.render(<ParticipantsList participants=participants />, mountNode)
Refreshing the status of a participant:
participants = [{ uuid: '45689', status: 'offline' }]
React.render(<ParticipantsList participants=participants />, mountNode)
- Twitter Bootsrap 3.3
- Underscore 1.8
- Font awesome 4.4
- A custom md5 function for displaying the gravatar
Take a look at: https://facebook.github.io/react/docs/update.html