Skip to content

Tag: reactjs

Failure to call AppRegistry.registerComponent

I created a new project using react-native init Wevaha,after that I excute it work’s properly then I modified sample app based on my requirement again run it works properly but the next time while running the app I am gettingthe error like AppRegistry.registerComponent’ The screen shot attached be…

Calling setState in a loop only updates state 1 time

Is there a reason that calling setSate() in a loop would prevent it from updating the state multiple times? I have a very basic jsbin that highlights the problem I am seeing. There are two buttons. One updates the state’s counter by 1. The other calls the underlying function of One in a loop — whi…