Skip to content

Commit

Permalink
Implement a simple React demo
Browse files Browse the repository at this point in the history
  • Loading branch information
josdejong committed Aug 6, 2018
1 parent 235410c commit 54cae20
Show file tree
Hide file tree
Showing 14 changed files with 14,554 additions and 9 deletions.
5 changes: 5 additions & 0 deletions docs/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -470,6 +470,11 @@ valid JSON and the editor is in mode `tree`, `view`, or `form`.

Contents of the editor as string.

### Constants

- `{string[]} JSONEditor.VALID_OPTIONS`

An array with the names of all known options.

### Examples

Expand Down
21 changes: 21 additions & 0 deletions examples/react_demo/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# See https://help.github.com/ignore-files/ for more about ignoring files.

# dependencies
/node_modules

# testing
/coverage

# production
/build

# misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local

npm-debug.log*
yarn-debug.log*
yarn-error.log*
21 changes: 21 additions & 0 deletions examples/react_demo/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# JSONEditor React demo

This project was bootstrapped with [Create React App](https://github.com/facebookincubator/create-react-app).

## Install

Install dependencies once:

```
npm install
```

## Run

To run the demo:

```
npm start
```

This will open a development server at http://localhost:3000
Loading

0 comments on commit 54cae20

Please sign in to comment.