Html – apply style on element 1 adjacent to element 2 if element 2 child is shown
how can i achieve this ? const element = () => { return <div> <Container1 /> <Container2 /> </div> } const Container1 = () => { return <div className="container-1"></div> } const Container2 = () => { const [preview,setPreview] = useState(true)…