Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

render html in react

const App = () => {
  const data = 'lorem <b>ipsum</b>';

  return (
    <div
      dangerouslySetInnerHTML={{__html: data}}
    />
  );
}

export default App;
 
PREVIOUS NEXT
Tagged: #render #html #react
ADD COMMENT
Topic
Name
3+6 =