Storybook with create-react-app and Typescript
# generate a new app using create-react-app yarn create react-app my-app --typescript cd my-app # install storybook cli yarn add -D @storybook/cli # initialize with storybook cli yarn sb init
yarn sb init should not be called with the
--type react flag.
--type, the cli figures out the correct type on its own.
The correct type for an app created with
Check out the source code for available types.