Computer Science, asked by preetshokeen0001, 4 hours ago

import React, { useState } from 'react'
import { Button , TextField , FormControl} from '@material-ui/core';

export default function App() {
const [todos, set_todos] = useState([])
const [inputbox, set_input] = useState()
const new_todo = (event) => {
event.preventDefault();
set_todos([...todos, inputbox]);
set_input([])
}
return (
<>
todo-it

set_input(event.target.value)} />
add todo



{todos.map(todo => (
{todo}
))}



)
}


please dont spam.


react.js.


button is not disabling properly , please help.

Answers

Answered by vishwanayakarahul70
0

Answer:

yes I will be there at me and I will be

Similar questions