I want to change .page-header when i click on standard-basic. I tried to do this:
#standard-basic:focus ~ .page-header{
display: none;
}
But it can't help me. How can change style of page-header in react or maybe just in js? I use functional component
<span id="pageHeader" className="page-header">TechPrice</span>
<form
className={props.classes.root}
noValidate
autoComplete="off"
className="search-form"
>
<TextField className="textField" id="standard-basic" label="Поиск" />
<SearchIcon className="search-icon" />
</form>