Adding a loading indicator to a button in React

preview_player
Показать описание
Adding a loading indicator to a button in React #react #reactjs #reactjsdeveloper #programming #progammer #frontend #devtok #coding #code #codetok
Рекомендации по теме
Комментарии
Автор

Nice. Typescript seems more organized and clear to read than js.

russellandrady
Автор

Great you can disabled the button with loading state🎉

jonathan_machado
Автор

Great! If you put the loading state on disabled prop of button, would be even better. What do you think?

ThiagoMarchettiHolanda
Автор

Jumping ui is bad.
Don’t shrink and move the button text to the right. Instead add the loading circle in front of the text.

PunkVoter
Автор

Would you wanna put the handleClick in a useCallback?

romankng
Автор

can u do it without causing rerender in parent? because state changes in parent so parent will rerender unnecesarily, because only child (spinner) should render?

KingBhai
Автор

Now you know!...

There you go.

Thanks

oabdulazeez
welcome to shbcf.ru