dillon1000/react

Commit

Add more information about defaultValue

I came across an issue on a React project where I needed to programatically set the default value of an input as the result of an async call.  (I was prepopulating a zip code field from the Google Maps Geocoding API).  It didn't work when I passed in an updated defaultValue prop, until I came across this StackOverflow: http://stackoverflow.com/questions/30146105/react-input-defaultvalue-doesnt-update-with-state.  I was able to get it to do what I wanted by passing in the value prop instead.
Browse files
Changed paths1 file
First-parent comparison
M docs/docs/07-forms.md Modified
Patch

Files changed

Rendering syntax-highlighted changes…