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


const [show, setShow] = useState(false)

const changeVisibility = () => {

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