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

Sample new page #15

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Sample new page #15

wants to merge 1 commit into from

Conversation

MichaelBieniek
Copy link
Collaborator

@MichaelBieniek MichaelBieniek commented Nov 20, 2024

Here's an example of how to add a new page.

  1. Create the new page component under src/pages, call it whatever (e.g. NewPage)
  2. Define the route to the new page under src/main.jsx. You have to import the page component at the top. Path will be the relative URL
  3. Add page label + relative URL to src/utils.js: this places it in the nav bar at the top, implicit order.

Result:
image

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

Successfully merging this pull request may close these issues.

1 participant