raza-awan/react-component icon
public
Published on 4/8/2025
react-component

Prompts
My prompt
React Component Patterns
Build a component in React using PascalCase and named exports. Make sure to separate the presentation and container logic, define PropTypes or JSDoc for props, and wrap the component in an error boundary. Create all React components using PascalCase (e.g. UserProfileCard.js). Export components using named exports rather than default exports. Separate presentational and container components using a clear feature pattern, define prop types with PropTypes or JSDoc, and implement error boundaries (e.g., using react-error-boundary) for critical UI sections.