Why would you use forceUpdate in a React component?

Technology CommunityCategory: ReactWhy would you use forceUpdate in a React component?
VietMX Staff asked 3 years ago

In order to force a re-render if there is some condition React is not detecting that requires an update to the UI. Typically this should not be necessary to call.