For the Final Draft of the project, we're looking for it to be totally complete! See the Canvas page for full details.
You can practice this work on your projects directly!
(Or you can code along with my in my chat demo; pull the latest version of the starter code)
Firebase is a web backend solution; it provides multiple features which you can access without need to "code" them yourselves.
In order to "clean up" any work done in an effect hook (e.g., disconnect listeners), have the callback return a "cleanup function" to execute.
import React, { useState, useEffect } from 'react';
function MyComponent(props) {
//specify the effect hook function
useEffect(() => {
//...do persistent work, set up subscriptions, etc
//function to run when the Component is being removed
function cleanup() {
console.log("component being removed")
}
return cleanup; //return function for React to call later
}, [])
return ...
}
Complete task list for Week 10 (all items)
Review everything
Finish up late problem sets
Work on project!
Next time: Firebase authentification + image storage