I have a mobx store from where I am pulling an array of data and trying to render each as an <li>
let completedList = completedTodos.map(todo => { <li> {todo.value} </li> } );
I can't figure out why this does not return anything but undefined.
Sorry I am new here and this is probably a dumb question.
mapbody use this:let completedList = completedTodos.map(todo => <li> {todo.value} </li> );or usereturnto return the html element, like this:let completedList = completedTodos.map(todo => {return <li> {todo.value} </li> });