@miniappfy/react
v0.2.0
Published
React runtime for [MiniAppfy](https://docs.miniappfy.dev) mini-apps — re-exports the React hooks and types the platform provides at runtime (`useState`, `useEffect`, `useRef`, …).
Readme
@miniappfy/react
React runtime for MiniAppfy mini-apps — re-exports the
React hooks and types the platform provides at runtime (useState, useEffect,
useRef, …).
Install as a dev dependency for types; the runtime is supplied by the MiniAppfy
Super App (no react in your bundle).
import { useState } from "@miniappfy/react";
export default function App() {
const [n, setN] = useState(0);
return <button onClick={() => setN((c) => c + 1)}>{n}</button>;
}Docs: https://docs.miniappfy.dev/en/sdk/react/
