Skip to content

Proposal: New templates for scaffolding (Components, Hooks, Context, etc.) #1

Description

@Israelamat

💡 Context

Our goal with react-isr-cli is to automate the repetitive work of creating file structures. Currently, we have standard templates for interfaces, services, and components, but the React ecosystem is huge!

We want to open this space for the community to suggest or contribute new templates that follow best practices and "Clean Architecture".

🎯 The Challenge

We are looking for proposals for new templates that can be generated via the rg command.

Some ideas to get started:

  • 🎣 Custom Hooks: A standard structure for use... hooks.
  • 📁 Context API: A folder with Context, Provider, and Reducer.
  • 🧪 Unit Tests: Automatic generation of .test.tsx or .spec.tsx files.
  • 🎨 Styled Components / Tailwind: Templates that include styling boilerplate.
  • 👔 Redux/Zustand Slices: Logic for state management.

🛠️ How to participate?

  1. Comment below: Tell us what template you would like to see and why it would be useful.
  2. Technical Proposal: If you can, provide a snippet of how the generated code should look.
  3. Contribute: If you want to code it yourself, let us know! We will guide you through the process of adding it to the src/templates folder.

This is a good first issue! Don't be shy, every idea is welcome. Let's make React development faster together! 🚀

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions