DeepFrontend
Learning Paths
Practice
System Design & DS
Design Studio
Data Structures Curriculum
Real-World Case Studies
Careers
Job Board
Resume Builder
Blog
Sign in
Search
⌘K
Go Pro
Loading compiler resources...
Web Security Quiz Practice
Active Recall Drill Session
← Exit Session
Question 1 of 1
medium
Web Security
In React, which pattern reintroduces the raw innerHTML-style XSS risk that JSX's default escaping otherwise prevents?
A
<div>{userComment}</div>
B
<div dangerouslySetInnerHTML={{ __html: userComment }} />
C
<p>{`static text`}</p>
D
Using props at all
Check Answer