Test Driven Development and Refactoring | Todo App with React, TypeScript, TDD | Frontend Hire

preview_player
Показать описание
The video covers a comprehensive tutorial on creating a Todo App using React, TypeScript, and Test-Driven Development (TDD) techniques. This is part five of the course and includes test-driven development and refactoring.

Links referred to in the video:

Chapters
00:00 Introduction
01:10 Gathering our Requirements
01:42 Convert Requirements to Basic Tests
03:05 First Test: should clear the input field after adding a task
04:15 Passing our First Test
05:15 Second Test: should not add an empty task
06:45 Passing our Second Test
08:12 Final Test: should add a task by pressing the enter key
09:50 Passing our Final Test
11:30 Refactoring
16:10 Solving Performance Issues

Рекомендации по теме
Комментарии
Автор

No, actually moving useState to the custom component will still cause multiple rerenders in that component. Put a console.log in the custom component and see. The best way to avoid multiple rerenders is to useRef (or react-hook-form, if you're on Caffeine), since you're not doing anything with the value "as the user types" rather when the user is done typing.

gbeh
welcome to shbcf.ru