dioxus icon indicating copy to clipboard operation
dioxus copied to clipboard

Add Use Statements in the Guide

Open Android789515 opened this issue 1 year ago • 1 comments

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.

Android789515 avatar Oct 13 '24 02:10 Android789515

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

chungwong avatar Oct 15 '24 05:10 chungwong