Practical React Hooks #3: Add loading spinner for buttons in reactjs using hooks API

preview_player
Показать описание
This video explains how to add a spinner for buttons when a user is performing an action using HOOKS API. This will help you prevent users from clicking the button twice before performing the actual action.

Video Timeline:
0:32 Method 1 - Adding spinner based on local state
04:57 Method 2 - Creating "useButtonLoader" hook

For other useful hooks

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

Kinda hard to hear you. Better microphone would help. Good stuff though

aaronnolan