How to Add a Route to RSK?
See original GitHub issueI am having trouble adding a new page/route to RSK. I have started with the current head (310bb5d), and done these steps:
- Duplicate the routes/contact folder, and rename it to ‘grumble’.
- Rename the file names to Grumble.css and Grumble.js
- Edit Grumble.js:
s/Contact/Grumble/g
- Edit index.js: change path to ‘/grumble’, and
s/Contact/Grumble/g
- Edit routes/index.js to
import grumble from './grumble';
and to addgrumble,
to the end of thechildren
list
npm run start
opens the browser to the home page at localhost:3001
localhost:3001/contact gives the contact page
localhost:3001/grumble gives a blank page, instead of a copy of the Contact page.
What else do I need to do? Thanks.
Issue Analytics
- State:
- Created 7 years ago
- Comments:10 (2 by maintainers)
Top Results From Across the Web
Angular 10 in Telugu #25 Route Parameters in ... - YouTube
In this video we will discuss about how to send parameters in the URL , read them in another component and display it....
Read more >How to Configure Metamask to Connect to the RSK Networks
Wondering how to add a custom network, and configure Metamask to connect to the RSK test network? In this short tutorial, you will...
Read more >Angular 10 in Telugu #29 Child Routes in #Angular10 in Telugu
In this video we will discuss about Child Routes in Angular-10 in Telugu.This is World FIRST CHANNEL in ... RSK Helpline. RSK Helpline....
Read more >RSK Helpline Intro - YouTube
RSK Helpline Intro.#RSKHelpline. ... Add a comment. ... #Angular 10 in Telugu #25 Route Parameters in Angular 10 in Telugu || RSK Helpline....
Read more >#Angular 10 in Telugu #23 Routing and Navigation ... - YouTube
In this video we will discuss about Routing and Navigation in Angular-10 in Telugu.This is World FIRST CHANNEL in YOUTUBE which dealing ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Ahah. That did the trick! All my (own) routes must appear above “content”, so routes.index.js is now:
A new question: why is
error
listed belowcontent
? Thanks!@richb-hanover thank you very much for crating this issue! Unfortunately, we have close it due to inactivity. Feel free to re-open it or join our Discord channel for discussion.
NOTE: The
main
branch has been updated with React Starter Kit v2, using JAM-style architecture.