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 models can be run locally in the browser using the following components and hooks
<MalloyModelProvider script={modelScript} />
: provides a context for setting up a modeluseMalloyModel()
: hook for accessing Malloy model runtime within MalloyModelProvideruseMalloyQuery(queryString)
: hook for executing a Malloy query from model within MalloyModelProvider context