Skip to content

Commit

Permalink
added InputForm components
Browse files Browse the repository at this point in the history
  • Loading branch information
EuJinnLucaShow committed Nov 25, 2023
1 parent da7a336 commit ae43599
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/App.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import './App.css';
import InputForm from './components/InputForm'

function App() {
return (
<div>
todo-app
<div style={{display: 'flex', justifyContent: 'center'}}>
<InputForm/>
</div>
);
}
Expand Down
21 changes: 21 additions & 0 deletions src/components/InputForm.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@

const InputForm = () => {

return (
<form onSubmit={''}>
<h3 style={{ display: 'flex', justifyContent: 'center'}}>To-Do</h3>
<input
type="text"
value={""}
onChange={''}
required
/>



<button type="submit">Add</button>
</form>
);
};

export default InputForm;

0 comments on commit ae43599

Please sign in to comment.