Home / Market / react container presentation component

react container presentation component

Create a React component using the Container/Presentation pattern in src/components by asking for the component name and type (ui or features), then scaffold files that follow this repository's TypeScript, Storybook, and SCSS conventions. Use when the user explicitly asks for a Container/Presentation-based component or runs /react-container-presentation-component.

skill★ 417940 dlgithubMITInstall in CosmosUpstream Source

Documentation & Preview

--- name: react-container-presentation-component description: "Create a React component using the Container/Presentation pattern in src/components by asking for the component name and type (ui or features), then scaffold files that follow this repository's TypeScript, Storybook, and SCSS conventions. Use when the user explicitly asks for a Container/Presentation-based component or runs /react-container-presentation-component." argument-hint: "componentName type(ui|features)" user-invocable: true

---

Container/Presentation Component

Use this skill to create a React component under src/components that follows the Container/Presentation pattern.

Refer to this skill's bundled references for detailed rules.

If the /react-container-presentation-component input is incomplete, ask questions first before creating files.

When To Use

Required Questions

If any of the following information is missing, ask the user using ask_user.

  1. Component name
  2. Type (ui or features)
  3. Whether to replace existing components (only when creating ui)

Question requirements:

Procedure

  1. Check existing components
  1. Decide target directory
  1. Re-check classification (only when ui is specified)
  1. Create required files
  1. Replace existing usages (only when creating ui)
  1. Validate

Output Contract