An example project of using Pts with React
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.

README.md

pts-react-example

Pts is a typescript/javascript library for visualization and creative-coding. Get started at ptsjs.org.

This repo provides two examples of using Pts in React components:

  1. with create-react-app
  2. with neutrino.js.

Let's take a look at the demo first before we start.

screenshot

Using Pts with create-react-app

create-react-app is a popular tool by Facebook to bootstrap a React application.

To get started, take a look at the README in create_react_app_example folder.

Using Pts with neutrino.js

neutrino.js is a new companion tool by Mozilla that can help you scaffold React, Vue, and other web and node projects

To get started, take a look at the README in neutrino_example folder.

Quick Start

If you just want to try out Pts, there's no need to install and build. Try out the online demo editor for quick experimentations.

Technical notes

Pts is an javascript es6 library that targets modern browsers. You can import a class like this:

import {Pt} from "pts"; // use ES6

Pts also provides an ES5 version for use in older builds. To use ES5, import a class like this:

import {Pt} from "pts/dist/es5"; // use ES5

License

Apache License 2.0. See LICENSE file for details. Copyright © 2017-2018 by William Ngan and contributors.