Skip to content
/ njs-react Public template

A nice and simple React template to let me (or anyone else) quickly whip up new projects

License

Notifications You must be signed in to change notification settings

njs-templates/njs-react

Repository files navigation

NJS's React Template

A nice and simple React template to let me (or anyone else) quickly whip up new projects.

Features

VS Code Extensions

Coding style

This ESLint and Prettier config uses double-quotes and semicolons.

const msg = "wow";

Installation

You can download this repo as a .zip or clone it with git, but a cleaner approach is with degit.

npx degit njs-templates/njs-react new-project
cd new-project
yarn

Recommended IDE

This was meant to be used with VS Code, but it should work with any editor. You'll be prompted to install any recommended extensions that aren't installed. If no one on your team is using VS Code, just delete the .vscode/ folder.

Next steps

  • Run yarn dev to start Vite and make sure everything's working.
  • Delete LICENSE.txt from the root of the directory.
    • If your project still uses an MIT License, just edit the author and year.
  • In package.json, change the project name and version.
  • Delete the .git/ folder if you cloned this repo.
  • Run a git init to start tracking changes.
  • Delete the boilerplate fromsrc/App.tsx, src/components/, src/store/, src/routes/, and src/index.css.
  • Do whatever. This code is yours now. Credit is appreciated but not needed.