innerRef

Specification

A getter function for the actual form HTML element rendered by the Form component.

Example

1
import React from 'react'
2
import { Form } from 'react-advanced-form'
3
4
export default class Example extends React.Component {
5
componentDidMount() {
6
this.formElement // HTMLElement
7
}
8
9
render() {
10
return (
11
<Form innerRef={element => this.formElement = element} />
12
)
13
}
14
}
Copied!
Read more on how to reference components and elements under Referencing.
Last modified 3yr ago
Copy link