From 1a9c54a9a7616d8917c8d963d3e86a23247db9b5 Mon Sep 17 00:00:00 2001 From: William Granada <31575153+wygranadap95@users.noreply.github.com> Date: Tue, 4 Jul 2023 00:09:06 -0500 Subject: [PATCH 1/2] commit Wg --- src/App.js | 32 ++++++++++++++++++-------------- src/CreateTodoButton.js | 7 +++++++ src/TodoCounter.js | 9 +++++++++ src/TodoItem.js | 11 +++++++++++ src/TodoList.js | 11 +++++++++++ src/TodoSearch.js | 6 ++++++ 6 files changed, 62 insertions(+), 14 deletions(-) create mode 100644 src/CreateTodoButton.js create mode 100644 src/TodoCounter.js create mode 100644 src/TodoItem.js create mode 100644 src/TodoList.js create mode 100644 src/TodoSearch.js diff --git a/src/App.js b/src/App.js index 952c8f1fd..ebf04dba8 100644 --- a/src/App.js +++ b/src/App.js @@ -1,25 +1,29 @@ import logo from './platzi.webp'; +import { TodoCounter } from './TodoCounter'; +import { TodoSearch } from './TodoSearch'; +import { TodoItem } from './TodoItem'; +import { TodoList } from './TodoList'; +import { CreateTodoButton } from './CreateTodoButton'; + import './App.css'; function App() { return (
-
- logo -

- Edita el archivo src/App.js y guarda para recargar. -

- - Learn React - -
+ + + + + + + + + +
); } + + export default App; diff --git a/src/CreateTodoButton.js b/src/CreateTodoButton.js new file mode 100644 index 000000000..47276ce80 --- /dev/null +++ b/src/CreateTodoButton.js @@ -0,0 +1,7 @@ + +function CreateTodoButton() { + return ( + + ) +} +export { CreateTodoButton } \ No newline at end of file diff --git a/src/TodoCounter.js b/src/TodoCounter.js new file mode 100644 index 000000000..177ae878b --- /dev/null +++ b/src/TodoCounter.js @@ -0,0 +1,9 @@ +function TodoCounter({ total, completed }) { + return ( +

+ Has completado {completed} de {total} tareas +

+ ) +} + +export { TodoCounter }; \ No newline at end of file diff --git a/src/TodoItem.js b/src/TodoItem.js new file mode 100644 index 000000000..3265625a3 --- /dev/null +++ b/src/TodoItem.js @@ -0,0 +1,11 @@ + +function TodoItem() { + return ( +
  • + V +

    perro que ladra no muerde

    + X +
  • + ) +} +export { TodoItem } \ No newline at end of file diff --git a/src/TodoList.js b/src/TodoList.js new file mode 100644 index 000000000..c6e2fda81 --- /dev/null +++ b/src/TodoList.js @@ -0,0 +1,11 @@ +function TodoList(props) { + return ( + + ) +} + +export { TodoList }; \ No newline at end of file diff --git a/src/TodoSearch.js b/src/TodoSearch.js new file mode 100644 index 000000000..8ba0df372 --- /dev/null +++ b/src/TodoSearch.js @@ -0,0 +1,6 @@ +function TodoSearch() { + return ( + ) +} + +export { TodoSearch }; \ No newline at end of file From f7ae6af1b11e0c17b59595b2cea1130974eae4e0 Mon Sep 17 00:00:00 2001 From: William Granada <31575153+wygranadap95@users.noreply.github.com> Date: Tue, 4 Jul 2023 00:23:06 -0500 Subject: [PATCH 2/2] hola --- curso_react | 1 + 1 file changed, 1 insertion(+) create mode 160000 curso_react diff --git a/curso_react b/curso_react new file mode 160000 index 000000000..ebc33fff3 --- /dev/null +++ b/curso_react @@ -0,0 +1 @@ +Subproject commit ebc33fff3bf28d5786ee96b2542673c6d1a8c345