DioxusLabs / dioxus

Fullstack app framework for web, desktop, mobile, and more.
https://dioxuslabs.com
Apache License 2.0
21.53k stars 827 forks source link

Add Use Statements in the Guide #3050

Open Android789515 opened 1 month ago

Android789515 commented 1 month ago

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 commented 1 month ago

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