);
}
function App() {
return ;
}
export default App;
/*
Notes:
- This requires three separate files (slice, store, Provider setup)
plus a Provider wrapping the app — noticeably more ceremony than
the single-file, no-Provider Zustand version from Challenge 1.
- state.count += 1 inside the reducer LOOKS like a direct mutation,
but Redux Toolkit's createSlice uses Immer underneath to translate
it into a proper immutable update — this is safe specifically
because it's inside a createSlice reducer, not a general rule for
React state.
*/