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
-
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