Skip to content

onClick not firing #4

@oumeirapp

Description

@oumeirapp

Current Behavior

No onClick event working

Expected Behavior

onClick should be firing.

Steps to Reproduce the Problem

  1. create any component.
  2. import with lazyHydrate
  3. 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'.

  1. when interacting with component, onClick does not fire.

Environment

  • Version: 1.1.0
  • Platform: Win
  • Node.js Version: v16.15.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions