Answer the question
In order to leave comments, you need to log in
How to type reducer?
const initialState = {
board: [
{
id: 23,
title: "I am board",
}
]
}
Answer the question
In order to leave comments, you need to log in
type Board = {
id: number;
title: string;
}
type State = {
board: Board[]
}
const initialState: State = {
board: [
{
id: 23,
title: "I am board",
}
]
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question