Skip to main content

Uncontrolled Components

React offers both controlled and uncontrolled usage of components. All PCR components forward refs to the underlying HTMLInputElement for easy integration using stateless managed form solutions like react-hook-form.

Basic Usage#

Create a ref and pass away!

Live Editor
Result
SyntaxError: Unexpected token (1:8)
1 : return ()
            ^

Without Hooks#

Still using classes? No worries ๐Ÿ‘

Live Editor
Result
SyntaxError: Unexpected token (1:8)
1 : return ()
            ^