malloydata / malloy-render-react

React wrapper for the Malloy renderer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Malloy Render React components

<MalloyRender />

A React component for rendering Malloy results. Takes either a result object or a combination of queryResult and modelDef:

<MalloyRender result={result} />

<MalloyRender queryResult={queryResult} modelDef={modelDef} />

Malloy DuckDB WASM Hooks

Malloy models can be run locally in the browser using the following components and hooks

  • <MalloyModelProvider script={modelScript} />: provides a context for setting up a model
  • useMalloyModel(): hook for accessing Malloy model runtime within MalloyModelProvider
  • useMalloyQuery(queryString): hook for executing a Malloy query from model within MalloyModelProvider context

About

React wrapper for the Malloy renderer

License:MIT License


Languages

Language:TypeScript 86.6%Language:JavaScript 7.2%Language:HTML 6.2%