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

[React Course]: Create Test for "React Hooks" Module #1562

Open
5 of 6 tasks
valerydluski opened this issue Mar 12, 2024 · 1 comment
Open
5 of 6 tasks

[React Course]: Create Test for "React Hooks" Module #1562

valerydluski opened this issue Mar 12, 2024 · 1 comment
Assignees

Comments

@valerydluski
Copy link
Collaborator

valerydluski commented Mar 12, 2024

Description

The need to create a new test for the "React Hooks" module arises as a part of the curriculum update for the React course. This module, detailed here, aims to introduce and delve into the concepts and practical use of React Hooks, a feature that allows functional components to manage state and side effects. The test will assess students' understanding of various Hooks, their syntax, use cases, and the benefits they bring to React development.

Objectives

  • Comprehension of React Hooks Basics: Test students' understanding of basic Hooks (useState, useEffect, useContext).
  • Advanced Hooks Knowledge: Assess familiarity with more advanced Hooks (useReducer, useCallback, useMemo, useRef).
  • Practical Application: Evaluate the ability to apply Hooks in solving common React development tasks.
  • Best Practices and Performance Optimization: Check knowledge of best practices when using Hooks, including rules of Hooks and optimizing component re-renders.

Tasks

  1. Theoretical Questions:

    • Create questions that cover the purpose, syntax, and basic use cases of each Hook.
    • Include questions on the rules of Hooks and scenarios for their application.
  2. Code Snippets and Practical Scenarios:

    • Provide code snippets and ask students to identify issues or predict output, focusing on Hooks usage.
    • Develop scenario-based questions where students must choose the appropriate Hook(s) to achieve a task.
  3. Performance and Best Practices:

    • Ask about optimizing component renders using useMemo and useCallback.
    • Include questions on common pitfalls and how to avoid them when using Hooks.

Expected Outcome

Upon completion, this test will comprehensively evaluate the students' theoretical knowledge and practical skills related to React Hooks. It will ensure they understand how to use Hooks effectively for state management, side effects, and other functionalities in functional components, adhering to best practices and optimizing application performance.

@Margaryta-Maletz
Copy link
Collaborator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

No branches or pull requests

2 participants