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

Line 65:26: 'Paragraph' is not defined react/jsx-no-undef #1088

Closed
SoftwareDev1014 opened this issue May 28, 2020 · 5 comments
Closed

Line 65:26: 'Paragraph' is not defined react/jsx-no-undef #1088

SoftwareDev1014 opened this issue May 28, 2020 · 5 comments

Comments

@SoftwareDev1014
Copy link

What problem does this feature solve?

What does the proposed API look like?

@SoftwareDev1014
Copy link
Author

Line 65:26: 'Paragraph' is not defined react/jsx-no-undef

@simonguo
Copy link
Member

Please describe your problem in detail.

@eDubrovsky
Copy link

Line 65:26: 'Paragraph' is not defined react/jsx-no-undef

I think you trying to import Paragraph from rsuit.

Do this:
import { Placeholder } from 'rsuite'
and in your app use <Placeholder.Paragraph/>

@simonguo
Copy link
Member

I cannot reproduce the issue. What are the steps to reproduce?

@eDubrovsky
Copy link

eDubrovsky commented May 30, 2020

@simonguo It's not issue in rsuit.

I think, @TolrenFrank copy some example from the doc (like Panel) and see code:

const instance = (
  <Panel header="Panel title">
    <Paragraph />
  </Panel>
);

If you a new user, you can be a little confused, because you don't know that Paragraph need be imported from Placeholder :)

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

4 participants