Giter Site home page Giter Site logo

react-typescript-storybook-starter's Introduction

This is the end result from https://dev.to/swyx/quick-guide-to-setup-your-react--typescript-storybook-design-system-1c51

update (March 2020)

@joanrm20 has provided an update to rewrite to Component Story Format, I think CSF is great so i merged in the PR here. Check it out!

update (July 2018)

@ncochard has provided an update to rewrite the stories in typescript, i think this is great so i merged in the PR here. Check it out!

Usage

npm install
npm run storybook

You can also build your storybook for static file hosting so your designers can see it:

npm run build-storybook

Happy to take contribution/improvement suggestions.

Related Storybook Typescript docs PR here

react-typescript-storybook-starter's People

Contributors

joanrm20 avatar ncochard avatar swyxio avatar tsiq-swyx avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

react-typescript-storybook-starter's Issues

CSF story format update

Hey @sw-yx ,

I have updated the storybook config according to the docs using main.js, preview.js, manager.js and using CSF.

Besides I've removed the custom Button component in favor of the ones provided by storybook react demo package and some other small updates like replacing addon-jsx and addon info by addon docs.

I was wondering if those changes are interesting for you to get in the repo then I can send a PR.

Here my fork: https://github.com/joanrm20/react-typescript-storybook-starter

Cheers,

Fails out of the gate, with spurious React type conflicts

It looks like some React type dependency skew.

Clone, "yarn", "npm run storybook" gets 170 errors of the form:

ERROR in [at-loader] ./node_modules/@types/react/index.d.ts:2221:19 
    TS2320: Interface 'Element' cannot simultaneously extend types 'ReactElement<any>' and 'ReactElement<any>'.
  Named property 'type' of types 'ReactElement<any>' and 'ReactElement<any>' are not identical.


Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.