Does document work in React?

The equivalent of document. getElementById in React is refs . We can assign a ref to an element and then retrieve the element that’s assigned the ref from the ref’s current property.

Sizin İçin Seçtik  Where do you put state in React?

Leave a Reply

Your email address will not be published. Required fields are marked *