score:0

 setTodos(
  snapshot.docs.map((doc) => ({
    id: doc.id,
    todo: doc.data(),
  }))
 );

Related Query

More Query from same tag