This code is sample code from the book Mastering ReactJs by Ryan Vice and Adam Horton and shows how to do field and form level validaitons using ReactJs with the React Validation Mixin.
-
Execute from command prompt (Windows) or terminal (Mac)
npm install
-
Execute from command prompt (Windows) or terminal (Mac)
npm start
-
Open index.html in a browser.
You can do this by simply right clicking on the file in explorer or finder and then selecting to open the file with your favorite browser.
This will run watchify and will rebuild dist/bundle.js anytime you change the code in app.jsx.