Hacker News new | past | comments | ask | show | jobs | submit login

Rendering in React is based on state and props. If you want to trigger a render, you need to change one of these.

If you base it on some external entity, you need to trigger a render manually.

These state libraries usually let you wrap your component in another component, that passes the state down as props, so when the state changes, new props are passed down and your component automatically renders with the new state.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: