DioxusLabs / DioxusLabs/dioxus

Add Use Statements in the Guide

Open
#3,050 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
39.1k
Forks
1.9k
Avg merge
4d 10h
Merged PRs (30d)
4

Description

## 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](https://github.com/user-attachments/assets/f96ef473-9993-4b1b-963b-788cab02245b)

Error:
![image](https://github.com/user-attachments/assets/0239fc94-b58b-4d88-b24d-330c502d84b2)

Code in the Guide:
![image](https://github.com/user-attachments/assets/d5a871e1-2293-4493-9899-02c7e48334f2)

Errors:
![image](https://github.com/user-attachments/assets/20475e7e-b983-4942-a265-af4b717c2545)

After adding use statement:
![image](https://github.com/user-attachments/assets/e0b95567-3694-429f-a255-aa0440979dba)

Have to add another use statement:
![image](https://github.com/user-attachments/assets/dff3aa95-a761-4d53-bc10-b6ecc341b1be)

## Implement Suggestion
Show relevant use statements to the code provided in the guide.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.