Answer the question
In order to leave comments, you need to log in
Is it safe to send html markup to render react.createElement?
Good evening)
An object is stored on the server in the form:
const text = {
'type': 'h1',
'props': {
'key': 1
},
'element': 'Заголовок'
}
export default function test () {
return React.createElement(
text.type,
text.props,
text.element
)
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question