Skip to content

Creating A Page In React

Eric Moore edited this page Sep 15, 2022 · 11 revisions

Create React Page

  1. Go to routes page in the route.rb scroll down to scope path: '/queue' do to add a get request this validates and configs the route located here config/routes.rb

  2. Go to the Queue.jsx located here client/app/queue/QueueApp.jsx/QueueApp/render

  3. Write a function for the component in the QueueApp.jsx with details of what the page is going to potentially render

Testing

Go to the UI to test what was imported from the backend to make sure page changes are rendered

References

For a list of Queue components with code go to Storybook

  • Queue
  • Queue Table
  • Choose desired table

Note

You may need to delete route.rb get request for development

Clone this wiki locally