A toy demonstration of uncontrolled inputs in React.js.
This creates two synchronized inputs:
- The slider is controlled. Dragging it results in immediate updates.
- The text box is uncontrolled. This allows typing in the text box without updating the UI until desired.
Check out app.js to see how it works.
To play with this on your own machine, run:
git clone https://github.com/danvk/react-inputs-toy.git
cd react-inputs-toy
npm install
bower install
gulp watch
and then visit http://localhost:9000/
.