Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using with React without webpack #26

Open
kendfrey opened this issue Jan 10, 2024 · 1 comment
Open

Using with React without webpack #26

kendfrey opened this issue Jan 10, 2024 · 1 comment

Comments

@kendfrey
Copy link

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>'.
@psygo
Copy link

psygo commented Jan 12, 2024

Just for reference: #1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants