Permalink
Fetching contributors…
Cannot retrieve contributors at this time
17 lines (10 sloc) 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>