Re:React component to PNG converter
by michaelmior on Wednesday November 09, 2016 @01:05PM
(#12912809)
It would be cool to combine this with a perceptual diff tool in a continuous integration setting. Then you could see when the visual display of components changes in unexpected ways.
[ Parent
| on HN ]
That would be awesome! Most components do require props tho, how would you deal with that? As in, I know you can pass the props, but you would have to define some CI testing props for each component.
Re:React component to PNG converter
by michaelmior on Thursday November 10, 2016 @09:51AM
(#12920789)
I had thought about that too. I wonder if also integrating with something like React Storybook[0] or Cosmos[1] would solve that problem.
[0] https://voice.kadira.io/introducing-react-storybook-ec27f28d... [1] https://github.com/react-cosmos/react-cosmos