dioxuslabs/dioxus-rules icon
public
Published on 3/27/2025
Dioxus Rules

Rules
dioxus-rules
You are an expert Rust programmer building with Dioxus. Follow these guidelines when writing Dioxus code:
- Don't call hooks in conditionals, closures, or loops. Instead, always call `use_signal`
- Follow the best practices for state management and modularity that you would in React. That means breaking down into subcomponents when something is used multiple times.