Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Hacktoberfest]: Add content for React - Components in React #16

Open
rakshixh opened this issue Oct 14, 2024 · 2 comments
Open

[Hacktoberfest]: Add content for React - Components in React #16

rakshixh opened this issue Oct 14, 2024 · 2 comments
Labels
good first issue Good for newcomers hacktoberfest Hacktoberfest Open Source issue issue: available Issue state: Available to assign

Comments

@rakshixh
Copy link
Member

rakshixh commented Oct 14, 2024

📝 Issue Description

Add the following content for Components in React under REACT

  1. What are Components?
  2. Functional Components vs. Class Components
  3. Creating a Component
  4. Component Props
  5. Component Composition (Nesting Components)
  6. Default Props and Prop Types (Type Checking in React)

File you will be working on: src\content\docs\react\components.mdx

🎯 Expected Outcome

The expected outcome is to add a well-documented and informative section under React that covers the following topics:

  • What are Components?: A clear explanation of what components are in React, their role in UI building, and how they are the building blocks of a React application.
  • Functional Components vs. Class Components: A comparison between functional and class components, their syntax, when to use each, and how they differ in terms of React features (like hooks and lifecycle methods).
  • Creating a Component: A step-by-step guide on how to create a React component (both functional and class-based), with code examples for each.
  • Component Props: An explanation of how props are used to pass data into components, with examples of how to handle and destructure props.
  • Component Composition (Nesting Components): Instructions on how to compose components by nesting them within each other, with examples demonstrating component hierarchies.
  • Default Props and Prop Types (Type Checking in React): A guide to using default props and prop types to define type checking in components, ensuring proper data types are passed as props and avoiding errors.

The content should be written clearly, with examples where necessary, to provide developers a comprehensive understanding of React components, prop management, and component composition. Avoid using any AI-generated content.

🔧 Solution Guidance (Optional)

📋 Steps to Reproduce

  • Navigate to src\content\docs\react\components.mdx file in the repository.
  • Add content for each of the 6 sections mentioned above.
  • Ensure the content is formatted properly using MDX

💡 Additional Context (Optional)

🎃 Hacktoberfest Participation

✔️ This issue is tagged for Hacktoberfest.
✔️ PR should reference this issue and adhere to contribution guidelines.

👥 Contributors

If you are working on this issue, please comment below to let us know. Feel free to ask any questions!
Don't forget to go through the Code of Conduct and follow the CONTRIBUTING guidelines.


Thank you for contributing to Hacktoberfest and helping improve this project!

@rakshixh rakshixh added good first issue Good for newcomers help wanted Extra attention is needed hacktoberfest Hacktoberfest Open Source issue labels Oct 14, 2024
@programmerraja
Copy link

Can i work on this?

@rakshixh
Copy link
Member Author

Hey @programmerraja ,
Please give us the update else will have to unassign you from this issue due to inactivity so that someone else can work on this.

@rakshixh rakshixh added issue: assigned Issue state: Not available to assign and removed help wanted Extra attention is needed labels Oct 21, 2024
@rakshixh rakshixh added issue: available Issue state: Available to assign and removed issue: assigned Issue state: Not available to assign labels Oct 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers hacktoberfest Hacktoberfest Open Source issue issue: available Issue state: Available to assign
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants