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

Add Use Statements in the Guide #3050

Open
Android789515 opened this issue Oct 13, 2024 · 1 comment
Open

Add Use Statements in the Guide #3050

Android789515 opened this issue Oct 13, 2024 · 1 comment

Comments

@Android789515
Copy link

Feature Request

Going through the guide it doesn't show any use statements to bring items into scope. This means when you enter the code it you just get errors saying dioxus_thing is undeclared.

Code in the Guide:
image

Error:
image

Code in the Guide:
image

Errors:
image

After adding use statement:
image

Have to add another use statement:
image

Implement Suggestion

Show relevant use statements to the code provided in the guide.

@chungwong
Copy link
Contributor

MOST of the time, use dioxus::prelude::* will cover your cases, especially in guides/tutorials.

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

2 participants