Skip to content

Commit

Permalink
note
Browse files Browse the repository at this point in the history
  • Loading branch information
luludotdev committed Jan 31, 2024
1 parent c6e1ad6 commit 95be3c1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pages/concepts/ui.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@ Dreamlab UI is a separate package dedicated to making common UI patterns easier.
The package is published on npm as [`@dreamlab.gg/ui`](https://www.npmjs.com/package/@dreamlab.gg/ui)
and is available by default in the Dreamlab scripting runtime.

<Callout>
While Dreamlab UI is a quick way to get started using UI frameworks, you can
roll your own manually should you wish.
</Callout>

Dreamlab UI React exposes many hooks that allow you to get references to game state in a react-safe way, such that they trigger
re-renders when their state changes. This requires some setup internally, so it also provides a `renderUI` function that takes
care of all the UI setup and state tracking for you.
Expand Down

0 comments on commit 95be3c1

Please sign in to comment.