News for hackers. Stuff that matters.
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.
Re:React component to PNG converter by Robin_f on Thursday November 10, 2016 @04:43AM (#12919019)
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

Re:React component to PNG converter by TazeTSchnitzel on Wednesday November 09, 2016 @02:14PM (#12913561)
Oh, this renders a PNG of how a component looks.

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

Re:React component to PNG converter by baristaGeek on Wednesday November 09, 2016 @12:45PM (#12912568)
Nice!

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