Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Javascript consumer of api #36

Open
Mirv opened this issue Nov 16, 2018 · 2 comments
Open

Javascript consumer of api #36

Mirv opened this issue Nov 16, 2018 · 2 comments

Comments

@Mirv
Copy link
Owner

Mirv commented Nov 16, 2018

React javascript components to display lists of fruit

@Mirv
Copy link
Owner Author

Mirv commented Nov 19, 2018

  • touch the app/views/home/index.html.erb & insert <%= react_component 'Main' %> as hook

  • make the react component app/assets/javascripts/components/_main.js.jsx
    Should have javascript generated message now - success!

  • component class AllPets that to display the list of pets

  • adjust main to load allpets

  • expand route to include "/pets"
    expand api v1's controllers to include pet actions ...

  • show

  • index

  • add state to Pets

  • add constructor to AllPets

  • check for component mounting to AllPets

  • change render to load each Pet now

  • add body component to hold all state & action processing
    Should have working list of all pets formatted - success!

@Mirv
Copy link
Owner Author

Mirv commented Nov 21, 2018

Made yesterday, commited today: aa14877

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant