Blog>
Snippets

Setting Up a New React Project with Create-React-App and Installing TanStack Store

Demonstrates initializing a new React project using Create-React-App and installing TanStack Store as the state management library.
npx create-react-app my-tanstack-store-app
This command initializes a new React project named 'my-tanstack-store-app' using Create-React-App. It sets up a React project with a default configuration.
cd my-tanstack-store-app
Navigates into the newly created project directory.
npm install @tanstack/react-store
Installs the TanStack Store library into the project, adding it as a dependency. This is used for state management within the React application.