Open Mirv opened 5 years ago
[x] touch the app/views/home/index.html.erb
& insert <%= react_component 'Main' %>
as hook
[x] make the react component app/assets/javascripts/components/_main.js.jsx
Should have javascript generated message now - success!
[x] component class AllPets
that to display the list of pets
[x] adjust main to load allpets
[x] expand route to include "/pets" expand api v1's controllers to include pet actions ...
[x] show
[x] index
[x] add state to Pets
[x] add constructor to AllPets
[x] check for component mounting to AllPets
[x] change render to load each Pet now
[x] add body component to hold all state & action processing Should have working list of all pets formatted - success!
Made yesterday, commited today: aa1487754f90db0fd9bc0eb14d92e7bcbec10229
React javascript components to display lists of fruit