How to change css property with function in react

I want to change visiblty properties with a function. I want when user click on the button change visible properties on textarea. How can ı make ? enter image description here

Answer

const [show, setShow] = useState(false)

const changeVisibility = () => {
  setShow(!show)
}

return (
<>
    <div className="ui form">
        {show && (
            <div className="field">
                <textarea rows="2"></textarea>
            </div>
        )}
    </div>
    <button onClick={changeVisibility}>show</button>
</>  
);