Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@latticexyz/react

Package Overview
Dependencies
Maintainers
0
Versions
1532
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@latticexyz/react

React tools for MUD client.

  • 2.2.14
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
0
Created
Source

MUD React

React hooks (and more) for building MUD clients.

Hooks for recs

useComponentValue

Returns the value of the component for the entity, and triggers a re-render as the component is added/removed/updated.

const position = useComponentValue(Position, entity);

useEntityQuery

Returns all matching EntityIndexes for a given entity query, and triggers a re-render as new query results come in.

const entities = useEntityQuery([Has(Position)]);
const playersAtPosition = useEntityQuery([Has(Player), HasValue(Position, { x: 0, y: 0 })]);

FAQs

Package last updated on 25 Oct 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc