Hi there I'm looking if there's a better way to render my todos
I have this
{
todos.map((todo) => (
todo.status === 1 && (
<p>{todo.title}</p>
)
))
}
{
todos.map((todo) => (
todo.status === 2 && (
<p>{todo.title}</p>
)
))
}
{
todos.map((todo) => (
todo.status === 3 && (
<p>{todo.title}</p>
)
))
}
Is there a way to do this?
Thanks a lot