An open API service indexing awesome lists of open source software.

https://github.com/eliasmurcray/react-template

React template with CLI tooling.
https://github.com/eliasmurcray/react-template

Last synced: 3 months ago
JSON representation

React template with CLI tooling.

Awesome Lists containing this project

README

        

# Welcome to the React Template

Here you can find out how to use this React Template.

## Development

You can develop using `npm run dev`. This will create a live reload that builds whenever it saves the file.

### Creating A Chunk

You can create a "chunk" by using the `npm run create-chunk [chunkName]` command. This will generate the basic React renderer TSX code, HTML code, and CSS code and link them together for Webpack.

### Deleting A Chunk

You can delete a "chunk" by using the `npm run delete-chunk [chunkName]` command. This will delete the old generated code.

### Creating A Component

You can create a new component by using the `npm run create-component [componentName]` command. This will generate the TSX class component and CSS code and link them together for Webpack.

### Deleting A Component

You can delete a component by using the `npm run delete-component [componentName]` command. This will delete the old generated code.

## Hot-reload Server

In case you do not have a live server extension (perhaps you are developing with Vim), you can host a dev server locally with `npm run serve`. This opens a port on 5001.

## Production

You can create a production output using `npm run build`. This will compress the files and make them ready for production!