(Formerly a direct port of the Django framework’s
npm install newforms
var forms = require('newforms')
By default, newforms will be in development mode. To use it in production mode, set the environment variable
'production'when bundling. To completely remove all development mode code, use a minifier that performs dead-code elimination, such as UglifyJS.
- Browser bundles
The browser bundles expose newforms as a global
formsvariable and expects to find a global
Reactvariable to work with.
The uncompressed bundle is in development mode, so will log warnings about potential mistakes.
You can find it in the dist/ directory.
Newforms source code and issue tracking is on GitHub:
Unless specified otherwise, documented API items live under the
namespace object in the browser, or the result of
- React Components
- Interactive Forms with React
- Customising Form display
- Form fields
- Form and Field validation
- Forms API
- BoundField API
- Fields API
- Validation API
- Widgets API
- Formsets API