0
use Ref for the body elem
How to target useRef in <body> tag ,For react js since we start wroking directly from app.js
2 Réponses
+ 4
Since body isn't part of your react code base, you don't have to use useRef to access body.
You do it as you do it in normal JS.
document.body.whatever = someValue;
0
Raj Chhatrala for now I'm in doing the same ..but firebox always warn you for using dom inside react that's why I'm asking