Open in app
Home
Notifications
Lists
Stories

Write
Dung.ntp Dung.ntp
Dung.ntp Dung.ntp

Home

Apr 11, 2021

Why using the setState method in React doesn’t mutate the state immediately?

The reason is setState is asynchronous, you can’t expect the updated state just after the setState, if you want to check the value use a callback method. Pass a method as a callback that will be get executed after the setState completes its task. Why setState is asynchronous? This is because setState alters the…

Reactjs

1 min read


Feb 25, 2021

Pretty status bar and navigation bar in Android
14
1

Hùng

Good job! Amazing Hùng!

Good job! Amazing Hùng!

1 min read

Good job! Amazing Hùng!

--

--

Dung.ntp Dung.ntp

Dung.ntp Dung.ntp

Following
  • David Gilbertson

    David Gilbertson

  • Andrew Bui

    Andrew Bui

  • Trần Trung Kiên

    Trần Trung Kiên

  • Hùng

    Hùng

  • Nam Xuan Cao

    Nam Xuan Cao

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Knowable