Skip to content

Commit

Permalink
docs: recs typo (#2914)
Browse files Browse the repository at this point in the history
  • Loading branch information
karooolis authored Jul 1, 2024
1 parent 80e700a commit 499b1f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/pages/state-query/typescript/recs.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ defineSystem(world, [Has(PlayerComponent), Has(Name), HasValue(PositionComponent
import { useEntityQuery } from "@latticexyz/react";
import { Has, HasValue, getComponentValueStrict } from "@latticexyz/recs";
function ExampleComponent() {
const { components, world } = useMUD;
const { components, world } = useMUD();
const { NameComponent, PlayerComponent, PositionCompoennt } = components
// get a list of all entities that are named, players, and at the center of the universe
// it is reactive and will trigger a re-render when the set of matching queries update
Expand Down

0 comments on commit 499b1f8

Please sign in to comment.