0
Fork 0
mirror of https://github.com/TanStack/form.git synced 2026-11-18 07:36:42 +00:00
form/examples/react/tanstack-start
tsushanth f066334fed
chore(examples): bump @types/react to ~19.2.0 in React examples (#2220)
* chore(examples): bump @types/react to ~19.2.0 in React examples

`npm install` failed for the React examples (originally reported against
react/standard-schema in #2216) because each example pinned
`@types/react: ~19.1.0` while `@types/react-dom: ^19.0.3` resolves to
19.2.x — and `@types/react-dom@19.2.x` peer-requires
`@types/react: ^19.2.0`. Same conflict in all 17 React examples.

Bumps every React example's `@types/react` to `~19.2.0` so the dev-only
type peer constraint is satisfied. `react`/`react-dom` themselves stay
at 19.1.0; the types are forward-compatible within the same major.

Closes #2216

* chore: regenerate pnpm-lock.yaml for @types/react bump

* chore: regen pnpm lock and fix sherif

---------

Co-authored-by: Corbin Crutchley <git@crutchcorn.dev>
History 2026-07-09 02:48:27 -07:00
..
public feat: update start to rc (#1771) 2025-11-13 19:46:25 +01:00
src feat: update start to rc (#1771) 2025-11-13 19:46:25 +01:00
.gitignore chore: devinxi start example (#1584) 2025-08-05 10:08:25 +02:00
package.json chore(examples): bump @types/react to ~19.2.0 in React examples (#2220) 2026-07-09 02:48:27 -07:00
README.md Reworked Next.js and New TanStack Start Support (#795) 2024-06-29 02:30:15 -07:00
tsconfig.json chore: devinxi start example (#1584) 2025-08-05 10:08:25 +02:00
vite.config.ts feat: update start to rc (#1771) 2025-11-13 19:46:25 +01:00

Welcome to TanStack.com!

This site is built with TanStack Router!

It's deployed automagically with Vercel!

Development

From your terminal:

pnpm install
pnpm dev

This starts your app in development mode, rebuilding assets on file changes.

Editing and previewing the docs of TanStack projects locally

The documentations for all TanStack projects except for React Charts are hosted on https://tanstack.com, powered by this TanStack Router app. In production, the markdown doc pages are fetched from the GitHub repos of the projects, but in development they are read from the local file system.

Follow these steps if you want to edit the doc pages of a project (in these steps we'll assume it's TanStack/form) and preview them locally :

  1. Create a new directory called tanstack.
mkdir tanstack
  1. Enter the directory and clone this repo and the repo of the project there.
cd tanstack
git clone git@github.com:TanStack/tanstack.com.git
git clone git@github.com:TanStack/form.git

Note

Your tanstack directory should look like this:

tanstack/
   |
   +-- form/
   |
   +-- tanstack.com/

Warning

Make sure the name of the directory in your local file system matches the name of the project's repo. For example, tanstack/form must be cloned into form (this is the default) instead of some-other-name, because that way, the doc pages won't be found.

  1. Enter the tanstack/tanstack.com directory, install the dependencies and run the app in dev mode:
cd tanstack.com
pnpm i
# The app will run on https://localhost:3000 by default
pnpm dev
  1. Now you can visit http://localhost:3000/form/latest/docs/overview in the browser and see the changes you make in tanstack/form/docs.

Note

The updated pages need to be manually reloaded in the browser.

Warning

You will need to update the docs/config.json file (in the project's repo) if you add a new doc page!