generated from ryansonshine/typescript-npm-package-template
-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Current Behavior
No onClick event working
Expected Behavior
onClick should be firing.
Steps to Reproduce the Problem
- create any component.
- import with lazyHydrate
- typescript complain with the following:
'Button' cannot be used as a JSX component.
Its element type 'ReactElement<any, any> | Component<ILazyComponentExtended, any, any>' is not a valid JSX element.
Type 'Component<ILazyComponentExtended, any, any>' is not assignable to type 'Element | ElementClass'.
Type 'Component<ILazyComponentExtended, any, any>' is not assignable to type 'ElementClass'.
The types returned by 'render()' are incompatible between these types.
Type 'React.ReactNode' is not assignable to type 'import("path/node_modules/@types/hoist-non-react statics/node_modules
/@types/react/index").ReactNode'.
- when interacting with component, onClick does not fire.
Environment
- Version: 1.1.0
- Platform: Win
- Node.js Version: v16.15.1
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working