Skip to main content

Build the app-facing side of a Runtime Kit feature: one React surface reads named data, renders every state, and asks a named target to do work from a button.

Named data means Runtime Kit has already made a piece of Bitfield data available to this app surface. The component reads it. It does not create storage addresses or parse package files.

When to use this

Use this recipe when a screen needs both data and an action.The point is the separation: the component owns UI state and user actions. Runtime Kit owns the public read/request line. The package owns the material served through that line.

What you will build

Component

Read path

The read line is:
That line means:The selector is not a storage path. The component does not import the package record, file, or derived value that produced the data name.

Request path

The request line is:
That line means:The component does not import the target implementation.

Verify the recipe

Use this checklist before copying the surface into a real app:

What should happen

Bad version

This version looks shorter, but it hides real states and crosses the boundary later:
That is how tangled apps start. The UI disappears when data is missing, and the button is one direct import away from bypassing Runtime Kit.

Common failures

Review checklist

The finished surface should answer:
Reject the answer if it mentions package implementation imports, local state hand edits, hidden providers, or storage address construction inside the component.

Why the component stays small

The component has two jobs:
  • Read the prepared welcome data.
  • Ask product.search to do work.
It does not import the record location, package byte path, target runner, or active package-set mount code.

What changes when the package changes

The package can add more records, ship more bytes, or replace the implementation for product.search. The component can stay the same as long as the public data shape and action name stay the same.

Next

Read Read data in React for the hook contract.Read Send a request for payload conversion, reply bytes, cancellation, and request errors.Read Runtime Kit API for exact useBitfieldData(...) and sendRequestToBitfieldTarget(...) contracts.Read Package to screen for the full package-to-surface path.
Last modified on May 10, 2026