---
description: >-
  This is a small wrapper for dispatching NUI messages. This is designed to be
  used with the useNuiEvent React hook.
---

# SendReactMessage

Signature

```lua
---@param action string The action you wish to target
---@param data any The data you wish to send along with this action
SendReactMessage(action, data)
```

Usage

```lua
SendReactMessage('setVisible', true)
```

