React App

React-App with Javascript-Typescript

Project templateframeworksMIT6 source files

Before you use this component

This is a third-party source bundle, not an installation into your account. UI Discovery has checked the available redistribution license evidence; runtime behavior has not been tested. Review all files, use a disposable project first, and do not enable scripts or hooks until you understand their permissions.

Some integrations require separately installed software, API keys or paid services. Credentials and subscriptions are not included. These are Claude Code resources; other clients may require adaptation.

Extract the ZIP into a temporary folder, inspect its entry file and supporting resources, then follow the original instructions. Do not overwrite an existing project configuration blindly. Keep the bundled license and attribution notices.

Source publisher
Claude Code Templates
Creator supplied by source
Not listed in source
Pinned source version
a344359459263d73d8948651c789244093c02e4e
License evidence
LICENSE

Source preview

cli-tool/templates/javascript-typescript/examples/react-app/CLAUDE.md

# CLAUDE.md - React Application

This file provides guidance to Claude Code when working with React applications using TypeScript.

## Project Type

This is a React application with TypeScript support.

## Development Commands

### Component Development
- **`/component`** - Create React components with TypeScript
- **`/hooks`** - Create and manage React hooks
- **`/state-management`** - Implement state management solutions

### Testing and Quality
- **`/test`** - Run tests and create test files
- **`/lint`** - Run linting and fix code style issues
- **`/typescript-migrate`** - Migrate JavaScript files to TypeScript

### Development Workflow
- **`/npm-scripts`** - Run npm scripts and package management
- **`/debug`** - Debug React applications
- **`/refactor`** - Refactor and optimize code

## Framework-Specific Guidelines

### React Best Practices
- Use functional components with hooks
- Implement proper TypeScript typing for props and state
- Follow React performance optimization patterns
- Use proper component composition patterns

### State Management
- Use useState for local component state
- Consider useContext for shared state
- Implement Redux Toolkit for complex state management
- Use Zustand for lightweight state management

### Component Architecture
- Keep components small and focused
- Use custom hooks for reusable logic
- Implement proper prop drilling prevention
- Follow component testing best practices

### Performance Optimization
- Use React.memo for expensive components
- Implement proper dependency arrays in useEffect
- Use useMemo and useCallback judiciously
- Optimize bundle size with code splitting

## TypeScript Configuration

The project uses strict TypeScript configuration:
- Strict type checking enabled
- Proper interface definitions for props
- Generic type support for reusable components
- Integration with React's built-in types

## Testing Strategy

- Unit tests with Jest and React Testing Library
- Component testing with proper mocking
- Integration tests for complex workflows
- E2E tests for critical user journeys

## File Naming Conventions

- Components: `PascalCase.tsx` (e.g., `UserCard.tsx`)
- Hooks: `use` prefix in `camelCase` (e.g., `useApiData.ts`)
- Types: `types.ts` or inline interfaces
- Tests: `ComponentName.test.tsx`

## Recommended Libraries

- **State Management**: Redux Toolkit, Zustand, Context API
- **Styling**: Styled-components, Emotion, Tailwind CSS
- **Forms**: React Hook Form, Formik
- **Routing**: React Router v6
- **HTTP Client**: Axios, SWR, React Query
- **Testing**: Jest, React Testing Library, Cypress

Preview capped at 60,000 characters. Download the bundle for every original file and notice.

Read the redistribution license
MIT License

Copyright (c) 2025 Daniel (San) Ávila

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

Bundle SHA-256: 65a34494b53b84a98416864eaa1f5b12575613b668f2bfe82df8990818621d6b. Files are served as downloads and are never executed by this page.