Skip to content

Commit ce212ef

Browse files
committed
React Basic sample using GoJS 2.1 Alpha
1 parent 90e9ba4 commit ce212ef

17 files changed

Lines changed: 13930 additions & 1 deletion

.gitignore

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+
# dependencies
4+
/node_modules
5+
/.pnp
6+
.pnp.js
7+
8+
# testing
9+
/coverage
10+
11+
# production
12+
/build
13+
14+
# misc
15+
.DS_Store
16+
.env.local
17+
.env.development.local
18+
.env.test.local
19+
.env.production.local
20+
21+
npm-debug.log*
22+
yarn-debug.log*
23+
yarn-error.log*

README.md

Lines changed: 49 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,49 @@
1-
# GoJS-React
1+
# GoJS React Basic
2+
3+
This project provides a basic example of using GoJS in a React app.
4+
Check out the [Intro page on using GoJS with React](https://gojs.net/alpha/intro/react.html) for more information.
5+
6+
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
7+
It also uses immer to simplify state update operations.
8+
9+
## Installation
10+
11+
Start by running npm install to install all necessary dependencies.
12+
13+
## Available Scripts
14+
15+
In the project directory, you can run:
16+
17+
### `npm start`
18+
19+
Runs the app in the development mode.<br>
20+
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
21+
22+
The page will reload if you make edits.<br>
23+
You will also see any lint errors in the console.
24+
25+
### `npm run build`
26+
27+
Builds the app for production to the `build` folder.<br>
28+
It correctly bundles React in production mode and optimizes the build for the best performance.
29+
30+
The build is minified and the filenames include the hashes.<br>
31+
Your app is ready to be deployed!
32+
33+
See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
34+
35+
### `npm run eject`
36+
37+
**Note: this is a one-way operation. Once you `eject`, you can’t go back!**
38+
39+
If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.
40+
41+
Instead, it will copy all the configuration files and the transitive dependencies (Webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.
42+
43+
You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.
44+
45+
## Learn More
46+
47+
You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).
48+
49+
To learn React, check out the [React documentation](https://reactjs.org/).

0 commit comments

Comments
 (0)