Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/abrehan2/higher-order-component
https://github.com/abrehan2/higher-order-component
css reactjs vitejs
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/abrehan2/higher-order-component
- Owner: abrehan2
- Created: 2023-11-17T11:01:22.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-11-17T12:20:07.000Z (about 1 year ago)
- Last Synced: 2023-11-18T12:32:28.262Z (about 1 year ago)
- Topics: css, reactjs, vitejs
- Language: JavaScript
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## What is Higher-Order Component (HOC)?
> A function that takes a component as input and returns an enhanced component as output.## Why do we need to use HOC?
> * Reuse component logic across multiple components, which saves time and reduces code duplication
> * Takes additional parameters, which allows you to customize the behavior of the HOC
> * Code is easy to read and maintain## Preview of Higher-Order Component
## Preview of Component A
## Preview of Component B