skip to Main Content

Javascript – Render doesnt replace old component

I am trying to inject Switcher10 to the container dom, render( <Switcher10 buttonId={containerid} displayText="AutoReply" isChecked={false} meta={meta}/>, container, ) Switcher10 looks like this: import { useState, useEffect } from 'react' interface Props { displayText: string buttonId?: number isChecked?: boolean meta?: string…

VIEW QUESTION
Back To Top
Search