Settings

Theme

Show HN: React Preview CLI – An alternative to Storybook with near zero config

npmjs.com

20 points by fwouts 4 years ago · 3 comments

Reader

fwoutsOP 4 years ago

Hi everyone, author here.

This was originally an extension for Visual Studio Code to preview React components directly in your IDE (that's still available too, as well as for IntelliJ now).

I've since gotten feedback that it's a useful alternative to Storybook, which people often find frustratingly slow, so I decided to build a CLI version as well.

React Preview is not yet open source (I'll probably end up switching to an open core model at some point) but it's based on ViteJS (which is significantly faster than webpack). It also uses the TypeScript Compiler API to resolve types and automatically generate valid props, so you don't need to configure custom stories like you would with Storybook (although that's supported too).

You can also check out the detailed docs at https://reactpreview.com

Please let me know what you think, any feedback is a gift!

  • vladsanchez 4 years ago

    I'm not even a FrontEnd Dev and I'm delighted, right after I found out about StoryBook (last week)!

    I shared it with my Dev team, hoping they'll adopt it and propel our velocity ;)

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection