Skip to content

Latest commit

 

History

History
16 lines (10 loc) · 182 Bytes

createRef.md

File metadata and controls

16 lines (10 loc) · 182 Bytes

createRef()

Get a reference to DOM element.

Usage

import {createRef} from 'libreact/lib/shim';

const div = createRef();

<div ref={div}>
  Hello world!
</div>