Reactjs: How to build a simple counter using React

preview_player
Показать описание
In this video I go over how to make a counter using React. I go over how update the state when incrementing and decrementing the counter.

Social Links

===============================================
DISCLAIMER: This video and description contains affiliate links, which means that if you click on one of the product links, I’ll receive a small commission. This helps support the channel and allows me to continue to make videos like this. Thank you for the support!
Рекомендации по теме
Комментарии
Автор

I know it is very simple, but for me who moved from hook to class component, this is very very helpful, thaknyouu!

rizqyhbb
Автор

Was really crisp and easy to understand...

sanjaidev
Автор

hey, thanks for a great video, I like that it was quick and to the point. keep it up!

SuitcaseCoder
Автор

Hi @Jason Rivera
What if I wanted to display the result on a different page, without the buttons?

TheSpazzed
Автор

how to decrement count clicking in the same button i used to increment count? this is possible in react js ? how i do this? thanks bro!

joaopaulo-ffvb
Автор

How to implement a separate component and import it into app.js

pjalmeida
Автор

I'm facing this issue when we click on + "function (partialState, callback) { if (typeof partialState !== 'object' && typeof partialState !== 'function' && partialState != null) { throw new Error('setState(...): takes an object of state variables to update or a ' + 'function which returns an object of state variables.'); } this.updater.enqueueSetState(this, partialState, callback, 'setState'); }1"

pavithrapavi-nddh