Reactjs – How to invoke React Component function element from a function?
I have the below function which calls show a modal dialog on click of edit button. How do I render the functional component UpdateModal from function showModal? Here is the function: const showModal = (user: IUser) => { setShowUpdateModal(true); return…