@stackflow/plugin-renderer-basic
v1.1.14
Published
Render the activity that should be rendered by default using the stack state.
Downloads
22,055
Keywords
Readme
@stackflow/plugin-renderer-basic
Render the activity that should be rendered by default using the stack state.
Usage
import { defineConfig } from "@stackflow/config";
export const config = defineConfig({
activities: [
{
name: "MyHome",
},
{
name: "MyArticle",
},
],
transitionDuration: 350,
});import { stackflow } from "@stackflow/react";
import { basicRendererPlugin } from "@stackflow/plugin-renderer-basic";
import { config } from "./stackflow.config";
import { MyHome } from "./MyHome";
import { MyArticle } from "./MyArticle";
const { Stack } = stackflow({
config,
components: {
MyHome,
MyArticle,
},
plugins: [basicRendererPlugin()],
});