ctrlplusb / react-async-component

Resolve components asynchronously, with support for code splitting and advanced server side rendering use cases.
MIT License
1.45k stars 62 forks source link

[typescript] Use ComponentType for more flexibility. #59

Closed bdoss closed 6 years ago

bdoss commented 6 years ago

This allows for React component classes or stateless functional components to be used when calling asyncComponent method.

codecov[bot] commented 6 years ago

Codecov Report

Merging #59 into master will not change coverage. The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master      #59   +/-   ##
=======================================
  Coverage   97.72%   97.72%           
=======================================
  Files           3        3           
  Lines          88       88           
  Branches       25       25           
=======================================
  Hits           86       86           
  Misses          2        2

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 903ca10...320ee08. Read the comment docs.

ctrlplusb commented 6 years ago

Awesome thanks for this @bdoss!