Render a component only if a condition is true
{isLoading && <Spinner />} {error ? <Error /> : <Content />}
Pass a ref from parent to child component
Dynamically import a component to reduce bundle size
Prevent unnecessary re-renders by memoizing callbacks
Clean up subscriptions and timers on unmount