Start sharing components as a team!Share components as a team!Join Bit to build your applications faster.Get Started Free

ref

v0.86.0arrow_drop_down
v0.86.0
v0.85.0
v0.84.0
STATUS
Passing
DOWNLOADS
15,051
LICENSE
MIT
VISIBILITY
Public
PUBLISHED
3 years ago
SIZE
3 KB
Called when componentDidMount.
1 contributor
Install ref as a package?
Copied
npm i @bit/semantic-org.semantic-ui-react.ref
Set Bit as a scoped registryLearn more
npm config set '@bit:registry' https://node.bit.dev
Component Example
React
React
Vue
Angular
React Native
Add dependency... help_outline
Just
import
any of the 1 million components
and packages in Bit or NPM to the example.
import Button from '@bit/grommet.grommet.button';
import Lodash from 'lodash';
toggle layout
modifieddraft
chevron_left
chevron_right

Called when componentDidMount.

Ref ()

This component exposes a prop that supports functional and createRef() API and returns the DOM node of both functional and class component children.

Called when a child component will be mounted or updated.

Called when a child component will be mounted or updated.

Properties
NameTypeDescription
children
(required)
element

Primary content.

innerRef
function | object

Referred node.

children
(required)
element

Primary content.

innerRef
function | object

Referred node.

children
(required)
element

Primary content.

innerRef
function | object

Referred node.

Help and resources