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

Cheatsheet enhancement: React js include Hooks sections #491

Open
zehan12 opened this issue Jan 16, 2024 · 2 comments
Open

Cheatsheet enhancement: React js include Hooks sections #491

zehan12 opened this issue Jan 16, 2024 · 2 comments
Assignees
Labels
request Cheatsheet request

Comments

@zehan12
Copy link
Contributor

zehan12 commented Jan 16, 2024

Issue Description:
I propose adding a new section to the cheatsheet that covers React.js Hooks. React Hooks are essential for modern React development, and having a concise reference in our cheatsheet would be highly beneficial for developers. This section should include the following subsections:

  1. State Hook:

    • Explanation of the useState Hook.
    • Example code illustrating how to use it.
  2. Multiple State Variable Declaration:

    • Explanation of declaring and using multiple state variables with useState.
    • Example code demonstrating the concept.
  3. Input State Management:

    • Tips and best practices for managing input state in React components.
    • Example code showcasing input state management using Hooks.
  4. useEffect:

    • Explanation of the useEffect Hook.
    • Common use cases and scenarios where it is useful.
    • Example code demonstrating the usage of useEffect.
  5. Build Your Own Hooks:

    • Introduction to custom Hooks creation.
    • Guidelines and best practices for building custom Hooks.
    • Example code for creating a custom Hook.

Benefits:

  • Provides developers with a comprehensive reference for React Hooks.
  • Makes it easier for both beginners and experienced React developers to understand and utilize Hooks effectively.
  • Enhances the overall usability of our cheatsheet.

Assignees: @zehan12

@zehan12 zehan12 added the request Cheatsheet request label Jan 16, 2024
@zehan12
Copy link
Contributor Author

zehan12 commented Feb 29, 2024

@Fechin Can I add up the documentation for React?

@Fechin
Copy link
Owner

Fechin commented Feb 29, 2024

@zehan12 Thanks for your suggestion, feel free to add whatever you'd like!

@zehan12 zehan12 mentioned this issue Mar 18, 2024
10 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
request Cheatsheet request
Projects
None yet
Development

No branches or pull requests

2 participants