Packages
@strict-script/react
strict-script in React. A component is two functions written in the language: setup, which makes its state in
cells, and view, which gives what to show from it, as elements.
import { component } from '@strict-script/react';
import { setup, view } from './Counter.sts';
const Counter = component(setup, view);
component(setup, view, { leave, tags }): leave is called with what setup gave when the component goes away;
tags names the components to use for the elements that are not the page's (nativeTags for React Native).
toReact(markup) makes React's elements from the language's; component also shows the component again when a
cell is given another value. How to use it is in In a project. The test builds a small
application with Vite and opens it in a browser.