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

mix static and dynamic slides (typescript issue) #481

Open
dartess opened this issue Jan 3, 2021 · 0 comments
Open

mix static and dynamic slides (typescript issue) #481

dartess opened this issue Jan 3, 2021 · 0 comments

Comments

@dartess
Copy link

dartess commented Jan 3, 2021

OK:

<ReactIdSwiper>
    <div />
    <div />
    <div />
</ReactIdSwiper>

OK:

<ReactIdSwiper>
    {[1,2,3].map(() => (
        <div />
    ))}
</ReactIdSwiper>

FAIL:

<ReactIdSwiper>
    <div />
    {[1,2,3].map(() => (
        <div />
    ))}
</ReactIdSwiper>
TS2739: Type 'Element[]' is missing the following properties from type 'ReactElement  ReactElement  Component )> | null) | (new (props: any) => Component )>': type, props, key
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant