Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
React component to PNG converter (github.com/jxnblk)
23 points by tilt on Nov 9, 2016 | hide | past | favorite | 5 comments


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.


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.


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


Oh, this renders a PNG of how a component looks.

I thought this would be storing JavaScript code in PNG pixel data.


Nice!

It would be good if you added some contribution guidelines :)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: