Dynamic Import in a react application
I have a react application, it has a list of components (kind of key/value – the key is the name of the component and the value is the function e.g () => return (<>hello</>)
and I will like to make use of some components that are not yet in the react application, they are on server, which means I will have to send the code from the server then the frontend needs the function (component) to be registered among the existing ones. I am using a python server, I have folder of the components, when the frontend requests for a file (component), the server reads the content of the requested file then sends it to frontend (which means it’s a string).