W7D2 - More React...
Today we had the chance to build something close to a fullstack webapp: an interactive Todo List.
We made a simple backend (model, controller) in rails, then built the view with react. In between, we had to create a ‘store’ that would be the link between the view and the backend.
It was pretty nice to build a real API (the store) that our view could consume when needed. I took the time to continue the project after class to have a fully featured to do list.
Props and state start to make more sense to me. I’ve been confused by the fact that props are not really ‘stored’ in the component as they would be in a traditional javascript object, but either come from the outside, or are received by your parent states.
While building our API, we’ve also had a nice nested route to create with the api namespace.
Tomorrow’s flux.












