Home > Net >  I can't Change text in the form in React
I can't Change text in the form in React

Time:09-30

I am Learning React and i want to work with forms. Initally i gave value "hello" in the form but i couldn't erase it and type anything in the form. import { React, useState } from "react";

const App = () => {
  const [num, setNum] = useState(0);
  const handleClick = () => {
    setNum(num   1);
  };
  const mew = () => {
    console.log("submiited");
  };
  return (
    <div className="bg-green-500 text-center">
      <h1 className="bg-red-200">
                   
  • Related