alieeeeeeeen / common-use-cases

Common use cases with React

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

common-use-cases-with-react

Numbers of common use cases with React.

Note that this repo is not a software, it is a collection of common use cases that implementd by React.

Common Use Cases

  • Higher-order-component (higher-order-function)
  • forward ref to obtain a element
  • React.createPortal to show a modal
  • With Render props
  • React.createContext to change the theme

Reference

About

Common use cases with React

License:Creative Commons Attribution 4.0 International


Languages

Language:JavaScript 95.0%Language:CSS 3.6%Language:HTML 1.4%