skip to Main Content

Reactjs – React rerendering

I have component const ComponentA: React.FC<ComponentAProps> = (props) => { const [invalidFields, setInvalidFields] = React.useState([]); return ( <ComponentB invalidInputs = {inavlidFields.length !== 0} /> ) Does component B rerender when the state invalidFields changes?

VIEW QUESTION
Back To Top
Search