Make list items responsive to state changes