Skip to content

Removed unnecessary 'import React' from Todo.jsx #112

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added .DS_Store
Binary file not shown.
File renamed without changes.
4 changes: 1 addition & 3 deletions TODO-LIST/src/components/Todo.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import React from 'react'

const Todo = ({ todo,deleteTodo,moveUp,moveDown,total,index}) => {

return (
Expand All @@ -14,4 +12,4 @@ const Todo = ({ todo,deleteTodo,moveUp,moveDown,total,index}) => {
)
}

export default Todo
export default Todo;
1 change: 0 additions & 1 deletion TODO-LIST/src/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from 'react';
import ReactDOM from 'react-dom/client';
import './index.css';
import App from './App';
Expand Down
2 changes: 1 addition & 1 deletion TODO-LIST/src/pages/Home.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React,{useState,useEffect} from 'react'
import {useState,useEffect} from 'react'
import {nanoid} from 'nanoid'
import Todo from '../components/Todo'

Expand Down