以下のようなユニオン型なので、 型を細かく絞りたくない時に使える。
type ReactNode = ReactChild | ReactFragment | ReactPortal | boolean | null | undefined;
以下のようなユニオン型なので、 型を細かく絞りたくない時に使える。
type ReactNode = ReactChild | ReactFragment | ReactPortal | boolean | null | undefined;
npx sb init
以下を参考に推奨の型を使えば良い
# npx sb init したときに表示 Running Storybook yarn run v1.22.19 $ storybook dev -p 6006 --initial-path=/onboarding --quiet 🔴 Error: It looks like you are having a known issue with package hoisting. Please check the following issue for details and solutions: https://github.com/storybookjs/storybook/issues/22431#issuecomment-1630086092
# 以下で解消 # 依存関係を再インストール rm -rf node_modules yarn.lock yarn install
記事を書いた
このコミュニティの翻訳は、最新の Storybook バージョンに対応していません。英語ガイドの最新の変更を適用して、この日本語ガイドの更新にご協力ください。 Pull requests を大歓迎します。.