0.1.0 • Published 3 years ago

hvm-react-component v0.1.0

Weekly downloads
-
License
-
Repository
-
Last release
3 years ago

HVM React Component

This package allows you to run a Kind2 App as a React Component. Using it is very simple:

import "hvm-react-component" as HVM_Component;

const main = "Apps.MyApp";
const code = "code_here";

function MyApp() {
  return <HVM_Component main={main} code={code} />;
}

Make sure to replace Apps.MyApp by your app's name, and code_here by your app's HVM code. This can be obtained running kind2 to-hvm Apps/MyApp/_.kind2. For an example, check src/index.js. The code of a demo app is available on Wikind/Apps/Demo.