Answer the question
In order to leave comments, you need to log in
How to render React components rendered as text?
There is text html which has an img element. It is required to display a React component instead of this html element - from Ant Design. How do I get it to properly inject into the virtual home and page state?
Answer the question
In order to leave comments, you need to log in
How is this different from a regular react component renderer?
const rootElement = document.getElementById("id-элемента где надо рендерить ваш компонент");
ReactDOM.render(
<AntDesignComponent/>,
rootElement);
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question