Using React's dangerouslySetInnerHTML

InstructorJoe Maddalone

Share this video with your friends

Send Tweet

Sure, it's a bad idea to store raw HTML in a database and feed that into dynamic views in your web application, but if you absolutely insist on doing it, React provides dangerouslySetInnerHTML to get the job done.