Open Jaikant opened 5 years ago
I am passing the number of lines to clamp which is stateful. Clamp does not rerender when the state changes
const [ lines, setLines ] = useState(3); return ( <Dotdotdot clamp={lines}> <Bio onClick={() => setLines(ln => (ln === 3 ? 0 : 3))}> {bio} </Bio> </Dotdotdot>
Same issue... Someone found a solution to this?
I am passing the number of lines to clamp which is stateful. Clamp does not rerender when the state changes