@pxblue/cra-template-blank-typescript

The base template for React projects created with the PX Blue CLI.

Usage no npm install needed!

<script type="module">
  import pxblueCraTemplateBlankTypescript from 'https://cdn.skypack.dev/@pxblue/cra-template-blank-typescript';
</script>

README

Blank 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 installs the basic PX Blue libraries for themes and components and configures the application to use them. It includes a simple placeholder screen that you can replace with your own application content.

Usage

This template can be used with Create React App:

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

or using the PX Blue CLI:

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

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 & CSS Baseline styles)
    └── App.tsx                             // a sample landing page