idev0085 / react-boilerplate

0 stars 0 forks source link

How to create refs? #33

Open idev0085 opened 3 years ago

idev0085 commented 3 years ago

Creating Refs Refs are created using React. createRef() and attached to React elements via the ref attribute. Refs are commonly assigned to an instance property when a component is constructed so they can be referenced throughout the component.