Skip to content

P5.js starter with React and Typescript

License

Notifications You must be signed in to change notification settings

dabalroman/p5-typescript-react-starter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

p5-typescript-react-starter

The aim of this repo is to quickstart your p5/react project by skipping the configuration part.

This package bundles:

  • p5.js
  • React (via create-react-app)
  • Typescript
  • EsLint (with airbnb config)

It provides boilerplate code that handles rendering and passing the data to and fro. The demo is included as default code and will show up after boot up of the project.

You can change how Typescript behaves via tsconfig.json. It defaults to quite strict rules that make JS feel more like low level language.


First step is to clone this repo and run:

npm install

To start development use:

npm run start

To build your app use:

npm run build

Use eslint in IDE or by running commands:

npm run lint
npm run lintfix

About

P5.js starter with React and Typescript

Resources

License

Stars

Watchers

Forks