Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const TodoItem: React.FC = ({ todo }) => {
trackMemo(todo);
const dispatch = useDispatch();
return (
<li>
numRendered: {++numRendered}
<input checked="{todo.completed}" type="checkbox"> dispatch({ type: 'TOGGLE_TODO', id: todo.id })}
/>
<span style="{{">
{todo.title}
</span></li>