1.4 KiB
id, title
| id | title |
|---|---|
| installation | Installation |
You can install TanStack Form via NPM,
or a good ol' <script> via
unpkg.com.
NPM
$ npm i @tanstack/react-form
# or
$ pnpm add @tanstack/react-form
# or
$ yarn add @tanstack/react-form
TanStack Form is compatible with React v16.8+ and works with ReactDOM and React Native.
Wanna give it a spin before you download? Try out the simple or basic examples!
CDN
If you're not using a module bundler or package manager we also have a global ("UMD") build hosted on the unpkg.com CDN. Simply add the following <script> tag to the bottom of your HTML file:
<script src="https://unpkg.com/@tanstack/react-form@4/build/umd/index.production.js"></script>
Once you've added this you will have access to the window.ReactForm object and its exports.
This installation/usage requires the React CDN script bundles to be on the page as well.
Requirements
TanStack Form is optimized for modern browsers. It is compatible with the following browsers config
Chrome >= 73
Firefox >= 78
Edge >= 79
Safari >= 12.0
iOS >= 12.0
opera >= 53
Depending on your environment, you might need to add polyfills. If you want to support older browsers, you need to transpile the library from
node_modulesyourselves.