Get the height of an element and show/hide More… button depending on the element's height
Advertisements I’m new to React and NextJs. I want to get the height of an element and depending on its height, to show or not to show the More… button. What I’ve tried is this: import {useRef, useState} from "react"; const MyText = (props) => { const [myState, setMyState] = useState(null) const setContent = (e)… Read More Get the height of an element and show/hide More… button depending on the element's height