Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

useselector typescript

export type RootState = ReturnType<typeof store.getState>;
export const selectTodo = (state: RootState) => state.BlogSlicer.data;
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #useselector #typescript
ADD COMMENT
Topic
Name
5+3 =