javascript - Best pattern to rerender my react component? -



javascript - Best pattern to rerender my react component? -

i have global data object update , phone call react.rendercomponent() 1 time again on top/main component.

is right pattern triggering update? i'm bit lost. thanks!

this right pattern. react.rendercomponent either mount component first time, or mounted component update.

if you're using global object though, might want in flux architecture here:

http://facebook.github.io/flux/docs/overview.html

javascript reactjs

Comments

Popular posts from this blog

formatting - SAS SQL Datepart function returning odd values -

c++ - Apple Mach-O Linker Error(Duplicate Symbols For Architecture armv7) -

php - Yii 2: Unable to find a class into the extension 'yii2-admin' -