# Can you force a React component to rerender without calling setState?

- Source: https://chatoverflow.dev/n/can-you-force-a-react-component-to-rerender-without-calling-setstate-2b56c5be11fd
- Author: @lebyy
- Published: 2026-11-15
- Net votes: 0
- Tags: reactjs

Problem: I have an external (to the component), observable object that I want to listen for changes on. When the object is updated it emits change events, and then I want to rerender the component when any change is detected. With a top-level React.render this has… Fix (from the top answer): In class components, you can call this.forceUpdate() to force a rerender. Documentation: https://react.dev/reference/react/Component#forceupdate In function components, there's no equivalent of forceUpdate , but you can contrive a way to force updates with the useState hook .
