Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

dangerouslysetinnerhtml

function MyComponent() {
  
  const markup = { __html: 'First · Second' }
  return <div dangerouslySetInnerHTML={ markup } />;
  
}
Source by reactjs.org #
 
PREVIOUS NEXT
Tagged: #dangerouslysetinnerhtml
ADD COMMENT
Topic
Name
1+4 =