simple repeated call of array in typescript of react doesnt work in 1 case of similar 3 cases
Budget: $10 – $30 USD
https://stackoverflow.com/questions/69849259/simple-repeated-call-of-array-in-typescript-of-react-doesnt-work-in-1-case-of-si
0
Hi there i'm coding simple todo apps with react.js/typescript. i'm stuck with calling repeatedly todos
i could call todo at 1) and 3) but I COUDNT call 2) .
whats the difference. maybe my interface type makes bad in todo.type.tsx ?
<TodoListItem todo={todos[0]} />
{todos.map(todo=> { <TodoListItem todo={todo} /> })}
{todos.map(todo => (<li>{todo.text} - {todo.email2}</li> ))}
or my Props2 calling in todo.tsx is bad ?
React.FC<Props2> = ({ todo })
0
Hi there i'm coding simple todo apps with react.js/typescript. i'm stuck with calling repeatedly todos
i could call todo at 1) and 3) but I COUDNT call 2) .
whats the difference. maybe my interface type makes bad in todo.type.tsx ?
<TodoListItem todo={todos[0]} />
{todos.map(todo=> { <TodoListItem todo={todo} /> })}
{todos.map(todo => (<li>{todo.text} - {todo.email2}</li> ))}
or my Props2 calling in todo.tsx is bad ?
React.FC<Props2> = ({ todo })