reactjs - react not reactively updating on login -


import storefactory '../../store/index'  {storefactory().getstate().auth.isloggedin == true &&         <div>      <h1>hello</h1>       </div> } 

i won't use component there, want conditional rendering, , works, long refresh page. when log in/out h1-hello-h1 won't change.

how make reactive without class&component&render ...?


Comments

Popular posts from this blog

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -