GDG Logo

Game Dev with React Workshop

Let's Get Started

Follow these simple steps to set up your React application with the required libraries and tools.

1. Create a React App

npx create-react-app my-app

This command initializes a new React application with a default setup. We're using the `create-react-app` tool to quickly scaffold a React project with essential configurations pre-built.

2. Navigate to Your App

cd my-app

Move into the directory of your new React app. This is where all your project files are located.

3. Install React Router

npm install react-router-dom --save

React Router enables navigation and routing in your React application. It allows you to create multi-page experiences in a single-page application by managing different views and URL patterns.

4. Install Jotai

npm install jotai

Jotai is a state management library that simplifies managing React application state. It provides a minimalistic API and is perfect for applications where you need simple and efficient state management.

5. Install Tailwind CSS

npm install -D tailwindcss postcss autoprefixer

Tailwind CSS is a utility-first CSS framework for building custom designs. This step installs the necessary dependencies to start using Tailwind.

6. Initialize Tailwind CSS

npx tailwindcss init

This command generates a `tailwind.config.js` file where you can customize your Tailwind CSS setup.

7. Install Development Dependencies

npm install ajv@8.16.0 ajv-keywords@5.1.0 schema-utils@4.2.0 --save-dev

These packages are essential development tools: Ajv is a JSON Schema validator for data validation, ajv-keywords adds custom keywords support, and schema-utils provides webpack schema validation. Together they ensure proper data validation and schema handling during development.