Skip to content

Using with React without webpack #26

@kendfrey

Description

@kendfrey

Is there a way to use Shudan in a React app without webpack? My project uses TypeScript and ESBuild, but I don't know how to translate the webpack instructions to TS.

When I try to use <Goban> in my TSX, this is the error I get:

src/index.tsx:127:4 - error TS2786: 'Goban' cannot be used as a JSX component.
  Its type 'ComponentClass<GobanProps, {}>' is not a valid JSX element type.
    Type 'ComponentClass<GobanProps, {}>' is not assignable to type 'new (props: any, deprecatedLegacyContext?: any) => Component<any, any, any>'.
      Property 'refs' is missing in type 'Component<GobanProps, {}>' but required in type 'Component<any, any, any>'.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions