tell me the easiest way to render a react component during redux state change?

You can check the state in your return for the render with something like a ternary operator and if true, then render the popup.

{state === correct ? <PopUp/> : null}

Every time state changes, the page is dynamically re-rendered.

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top