Skip to main content
REACT-BASICS5 MIN READ

Put user-caused work in the event handler

Place user-triggered side effects in event handlers and external synchronization in Effects.

A profile form has a Save button. After a successful save, the UI should show a toast and clear the dirty flag. The saved profile may also be loaded directly from the server on page refresh.

Read the full lesson

Sign up free — one personalized lesson every day, matched to your role and goals.

Already have an account? Sign in

← Back to library
Contact us