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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need Import React in Example #542

Merged
merged 1 commit into from
Jun 18, 2022
Merged

Conversation

MrScrappy
Copy link
Contributor

When trying to replicate the example it will fail since in the example the React instance is being requested in:

     return {
                ...initialProps,
                styles: React.Children.toArray([initialProps.styles])
     //                  ^
};
  }

and this at no time matters

Closes #

馃摑 Description

When trying to replicate the example it will fail since in the example the React instance is being requested and this at no time matters

鉀筹笍 Current behavior (updates)

I add the line import React from 'react'

馃殌 New behavior

Please describe the behavior or changes this PR adds

At the time of following the steps and copying and pasting the example, this error will stop appearing
image

馃挘 Is this a breaking change (Yes/No): No

馃摑 Additional Information

It's something simple that users can add, but for novice programmers it can be a headache to understand what is going wrong, and the idea that the learning curve or creating your project can be as simple as copy and paste.

When trying to replicate the example it will fail since in the example the React instance is being requested in:

```jsx
     return {
                ...initialProps,
                styles: React.Children.toArray([initialProps.styles])
     //                  ^
};
  }
```

and this at no time matters
@jrgarciadev
Copy link
Member

Hey @MrScrappy , thanks 馃檶馃徎

@jrgarciadev jrgarciadev merged commit fe59443 into nextui-org:main Jun 18, 2022
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

Successfully merging this pull request may close these issues.

None yet

3 participants