kingingcole / todo-hooks

A todo app built with React hooks and styled-components. Todos are stored in localStorage.

Home Page:https://todo-hook.netlify.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Remove conditional statement

kingingcole opened this issue · comments

{todos && todos.map(todo => {

Since in code block before this line, an if statement already checks if there are no todos and returns "No Todo", then there's no point for this conditional statement.