forked from ruanyf/react-demos
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
42 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,12 @@ | ||
// copied from https://github.com/mhart/react-server-examplei | ||
This demo is copied from [github.com/mhart/react-server-example](https://github.com/mhart/react-server-example), but I rewrote it with JSX syntax. | ||
|
||
$ npm install | ||
$ jsx src/ . | ||
$ node server.js | ||
```bash | ||
# install the dependencies in demo11 directory | ||
$ npm install | ||
|
||
# translate all jsx file in src subdirectory to js file | ||
$ jsx src/ . | ||
|
||
# launch http server | ||
$ node server.js | ||
``` |