Skip to content

Commit

Permalink
➕ feat: tasks component
Browse files Browse the repository at this point in the history
  • Loading branch information
Linder Hassinger committed May 3, 2024
1 parent 8980599 commit df09df4
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 0 deletions.
19 changes: 19 additions & 0 deletions redux-example/src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,22 @@
.read-the-docs {
color: #888;
}

form {
display: flex;
justify-content: center;
gap: 20px;
}

input {
outline: none;
padding: 12px 20px;
border-radius: 8px;
border: none;
}

.tasks {
display: flex;
border: solid;
margin-top: 20px;
}
2 changes: 2 additions & 0 deletions redux-example/src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import "./App.css";
import { useSelector, useDispatch } from "react-redux";
import { increment, decrement, setValue } from "./app/slices/counterSlice";
import Header from "./components/Header";
import Tasks from "./components/Tasks";

function App() {
const counter = useSelector((state) => state.counter.value);
Expand Down Expand Up @@ -48,6 +49,7 @@ function App() {
<p className="read-the-docs">
Click on the Vite and React logos to learn more
</p>
<Tasks />
</>
);
}
Expand Down
13 changes: 13 additions & 0 deletions redux-example/src/components/Tasks.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
export default function Tasks() {
return (
<>
<form action="">
<input type="text" placeholder="Escribe tu tarea" />
<button>Crear Tarea</button>
</form>
<div className="tasks">
<p>Lista de tareas</p>
</div>
</>
);
}

0 comments on commit df09df4

Please sign in to comment.