UpTest > Web Development > ReactJS Test

Test: ReactJS Test

Question 18: Prev Next Hide answers

How set custom html inside ReactJs component?

<div innerHTML={{__html: 'Some custom html'}} />
0 votes
<dangerouslySetInnerHTML>Some custom html</dangerouslySetInnerHTML>
0 votes
<customHtml>Some custom html</customHtml>
0 votes
<div innerHTML={{html: 'Some custom html'}} />
0 votes
<div innerHTML={'Some custom html'} />
0 votes
<div dangerouslySetInnerHTML={'Some custom html'} />
0 votes
<div dangerouslySetInnerHTML={{__html: 'Some custom html'}} />
2 votes
Please login to submit your answer.