Skip to content
U

uncontrollable

Wrap a controlled react component

by monastic.panicFree

#32in UI Libraries
0In stores

Description

uncontrollable is a small React helper for wrapping a controlled component so that chosen prop and handler pairs can be left uncontrolled by…

Highlights

  • Wraps a controlled component so chosen props can be uncontrolled
  • useUncontrolledProp and useUncontrolled hooks
  • Can be used in place of the higher-order component
  • Example of a dropdown that tracks no state

Ratings & Reviews

No ratings yet

Be the first to rate uncontrollable.

People also visit

R

react-auto-controlled

Component autonomous state control utilities in React class methods

UI Libraries
Launch
R

react-select

A Select control built with and for ReactJS

UI Libraries
Launch
R

react-quill

The Quill rich-text editor as a React component

UI Libraries
Launch
R

react-dropdown

A lightweight, accessible dropdown component for React

UI Libraries
Launch
C

conditional-wrap

conditional-wrap React component

UI Libraries
Launch
B

@brainhubeu/react-carousel

Carousel component for React

UI Libraries
Launch

uncontrollable FAQ

What problem does it solve?

It lets a component leave some props uncontrolled, so consumers choose whether to manage state themselves or let the component do it.

What hooks does it provide?

useUncontrolledProp for a single value, and useUncontrolled for a whole set of props and handlers.

Who uses it?

The README says React Widgets makes heavy use of this strategy.

Who is it for?

Component library authors who want native-input-style controlled and uncontrolled behavior.

What are the best uncontrollable alternatives?

Popular alternatives to uncontrollable include react-auto-controlled, react-select and react-quill. See all uncontrollable alternatives

Developer Stuff

Badges