Skip to content

Updates to Accommodate React Router 6#43

Open
mwislek wants to merge 5 commits into
mainfrom
feat/react-router-6
Open

Updates to Accommodate React Router 6#43
mwislek wants to merge 5 commits into
mainfrom
feat/react-router-6

Conversation

@mwislek
Copy link
Copy Markdown
Contributor

@mwislek mwislek commented May 10, 2025

Updates the client template subsection generator to accommodate React Router 6. See https://github.com/LaunchPadLab/client-template/pull/485 for the client changes that prompted this update.

To test this:

  1. Pull down the latest from this repository and switch to the feat/react-router-6 branch.
  2. Execute yarn link in the root of this project
  3. Navigate to a local copy of the client-template repository and pull the latest from the main branch.
  4. Execute yarn link "@launchpadlab/lp-subsection-generator" to use the local subsection generator
  5. Generate a subsection. For example, to generate the accounts subsection execute yarn generate-subsection accounts in the client-template project root folder.
  6. Integrate the accounts subsection into the main <AppRouter> component.
  7. Start the client template and verify that:
    a. You can navigate to the new accounts subsection, i.e., http://localhost:8080/accounts
    b. That the accounts index view is displayed
    c. You can navigate to the a specific account, i.e., http://localhost:8080/accounts/3
    d. That the accounts show view is displayed.
  8. Verify that navigating back to the /home route is still functional.
  9. Verify that navigating to the /styleguide is still functional.

Comment thread generate.js
`./${subSectionName}/views/${pascalCaseName}Show.jsx`
)
)
// Rename routes file
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The real change was here. The rest of these changes were formatting.

@mwislek mwislek requested a review from chawes13 May 10, 2025 00:48
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