Replies: 1 comment 4 replies
-
with the newest storybook, I created a simple demo but it just works, I didn't even import { Meta } from "@storybook/html";
import { createSignal } from "solid-js";
const meta: Meta = {
title: "Example/Button",
};
export default meta;
export const Basic = () => {
return <Button />;
};
const Button = () => {
const [count, setCount] = createSignal(0);
return <button onClick={() => setCount(count() + 1)}>{count()}</button>;
}; |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
https://github.com/ryansolid/solid/blob/main/documentation/storybook.md
it seems this guide is outdated and not suit for current version of storybook.
Beta Was this translation helpful? Give feedback.
All reactions