rolling-scopes-school / tasks

MIT License
3.31k stars 4.79k forks source link

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

Open valerydluski opened 8 months ago

valerydluski commented 8 months ago

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

Tasks

  1. Theoretical Questions:

    • [x] Create questions that cover the purpose, syntax, and basic use cases of each Hook.
    • [x] 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.
    • [x] Develop scenario-based questions where students must choose the appropriate Hook(s) to achieve a task.
  3. Performance and Best Practices:

    • [x] Ask about optimizing component renders using useMemo and useCallback.
    • [x] 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 commented 5 months ago

https://github.com/rolling-scopes-school/tests/pull/138