This package has been deprecated

Author message:

This package has been deprecated. Please update to the new @brightlayer-ui/cra-template-routing-typescript.

@pxblue/cra-template-routing-typescript

1.1.2 • Public • Published

Routing Template (TypeScript)

npm (scoped)

This is an official PX Blue template for use with the Create React App CLI. It is also used internally by the PX Blue CLI.

This template includes the installation and initial setup of routing using React Router. It includes several placeholder routes/screens and a Drawer navigator from the PX Blue React Component Library.

Usage

This template can be used with Create React App:

npx create-react-app myapp --template @pxblue/routing-typescript

or using the PX Blue CLI:

npx -p @pxblue/cli pxb new react --name=myapp --language=ts --template=routing

Project Structure

Projects created using this template will start out with the following file structure:

└── /src
    |── index.tsx                           // the root file that renders the application (Theme Provider, Router, & CSS Baseline styles)
    |── App.tsx                             // sets up the DrawerLayout component
    |── /components                           
    │   └── Logo.tsx                        // PXB spinning logo graphic
    |── /contexts                           
    │   └── drawerContextProvider.tsx       // creates a Context to allow pages to open/close the navigation drawer
    |── /pages                              // sample application pages
    └── /router
        |── drawer.tsx                      // the contents of the navigation drawer
        |── main.tsx                        // React Router route configuration
        └── routes.tsx                      // route definitions for use in the Router

/@pxblue/cra-template-routing-typescript/

    Package Sidebar

    Install

    npm i @pxblue/cra-template-routing-typescript

    Weekly Downloads

    5

    Version

    1.1.2

    License

    BSD-3-Clause

    Unpacked Size

    48.6 kB

    Total Files

    26

    Last publish

    Collaborators

    • px-blue