What we are looking for: Refactored Draft 1 into a React App
Converted the HTML/CSS from draft 1 into a published React app. Began to add interactive functionality.
GitHub pages is not able to cleanly handle client-side routing, so we'll use Firebase to host your projects instead!
Firebase is a web backend solution; it provides multiple features which you can access without need to "code" them yourselves.
next weeks
Use a combination of Firebase command line tools and Vite scripts to build and deploy your React application to Firebase hosting!
See Project Draft 2 instructions on Canvas for details.
Work on your app with all data being stored in the state (even if not persisted). If you have a clean state-based interactive structure, adding in the database will be straightforward.
function App(props) {
const [data, setData] = useState([]); //define the state
//respond to events
const handleClick = (event) => {
setData(newData); //update state when event occurs
}
//render the state
const dataElems = data.map((item) => {
return <DataItem value={item} />
})
return (
<div>{dataElems}</div>
)
}
Complete task list for Week 8 (items 1-5 !!)
Problem Set 08 due Wednesday (it is small)
Project Draft 2 due SUNDAY!!
Next time: Working with Data: AJAX