The final project for Xtern Bootcamp 2018 Session 3. Based on Davey's version.
- Set the current room when you click a room in the sidebar.
- Sync the list of rooms with Firebase (using
base.syncState()).
- Sync each room's messages separately.
- Add a form to create new rooms.
- Add the re-base package to your project. At the command-line, type:
yarn add re-baseConfirm that re-base is now listed under dependencies in package.json.
- Update
base.jsto initialize and exportRebase.
Hint: export default Rebase.createClass(db)
- Use
base.syncState()to sync your messages with Firebase.
- Try to make authentication work with Firebase!
- Create and style more components, based on the
chat-staticcontent. There should be approximately one CSS file per component.
- Make a
SignIncomponent with a form that takes a user name or email. - When the form is submitted, save that user in the
stateof theAppcomponent. - When
state.useris not set, show theSignIncomponent. - When
state.useris set, show theMaincomponent.
Hint: You need to figure out how to do conditional rendering.