The ability to reply to discussions is limited to PRO members. Want to join in the discussion? Click here to subscribe now.

Using React's dangerouslySetInnerHTML

Using React's dangerouslySetInnerHTML

2:23
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.
Watch this lesson now
Avatar
egghead.io

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.

HEY, QUICK QUESTION!
Joel's Head
Why are we asking?