Closed
Description
- propose turning this into a HOC pattern ✅
(options) => (WrapComponent) => WrappedWithAsyncScript
- it's so close to being this pattern all ready and is more conducive with community standards. ie. recompose
- example from this comment and his re-write in fork
- propose cutting a
v1.0.0
with the above HOC pattern and current optionsreact-async-script
has been a solid choice in the react community for years with a solid API
TODO:
- PR for "standard" HOC pattern
- drop dev support for NODE 4/5/6/7. No longer LTS. 6 is only maintenance.
- drop option
exposeFuncs
and usehoist-non-react-statics
- use
forwardRef
- work started- sets peer dep to
"react": ">= 16.3.0"
- React forward ref #37
- sets peer dep to
- update readme with
migration to 1.0.0
section - test release candidate with
react-google-recaptcha
- v1.0.0 release react-google-recaptcha#91- Looking good 👍 - Example: https://codesandbox.io/s/1y4zzjq37l
Metadata
Metadata
Labels
No labels