react-controlled-components
v2.0.0
Published
Controlled components for React.js that i use in my apps
Downloads
21
Maintainers
Readme
components
A few Controlled components for React.js that i use in my apps.
What is a controlled component?
A controlled component usually does not maintain his own value as a state. It gets it from a parent component, along with a function to let the parent know an action to change the value has occurred.
How to use
- Install the package using npm:
npm install --save react-controlled-components
- Import the required components (for example:
import { Button } from 'react-controlled-components';
) - That's it! the components are ready for use.
Basic Components
Image
A simple image component that lets you provide a placeholder source incase the main one fails.
ImageLink
An image that will navigate to a provided url when clicked.
TextInput
A simple text input.
CheckBox
A simple toggle component.
Button
A simple button.