OverviewHistoryStatsSecurity
npx skills add ...
Documentation
SKILL.md
npx skills add mindrally/skills --skill redux-toolkit
Comprehensive Redux Toolkit best practices for React and Next.js applications with TypeScript.
npx skills add mindrally/skills --skill redux-toolkit
You are an expert in Redux Toolkit for state management in React and Next.js applications.
handle (e.g., handleClick)isLoading, hasError)use (e.g., useAuth)useAppDispatch, useAppSelector)export const fetchUser = createAsyncThunk(
'user/fetch',
async (userId: string, { rejectWithValue }) => {
try {
const response = await api.getUser(userId)
return response.data
} catch (error) {
return rejectWithValue(error.message)
}
}
)