Live data from Hacker News

Flipboard releases React Canvas

github.com

41–50 of 136 posts

Re: Flipboard releases React Canvas

#41

Looks really good. My only real question would be about something drab but practical: SEO. As the components are rendered to canvas, would the metadata that usually feeds SEO be harder to generate? Is that something you could fix through use of the parallel DOM (it's mentioned briefly on the page)?

[deleted]

Re: Flipboard releases React Canvas

#42
Here's an interesting take on the "hybrid" app idea:

- React Canvas is your application layer

- HTML canvas is your common rendering layer

- Browsers are your web runtime

- Ejecta[0] is your iOS runtime

- (I don't know a native android canvas runtime)

[0] http://impactjs.com/ejecta --> renders with WebGL

Re: Flipboard releases React Canvas

#43

I'm building a complicated canvas app[1] for visualizing Bitcoin markets. I resorted to building my own framework on top of canvas, exactly for performance reasons. It's fast, but as a framework I was never too happy with it because it's a little half-baked. More recently I found and fell in love with React for other frontend work, and use it exclusively now for any view-related work. I might have to go back and rewr…

Looks awesome! Two quick questions:

1) Your site looks very similar to bitcoinwisdom ( which i love). Did that come about by coincidence or design? Are there any open source tools that you were able to build off of that bitcoinwisdom also uses?

2) Could you build out support for visualizing financial markets like stocks and the price of oil? The bitcoin ecosystem has a bunch of great UI, but it's difficult to find good web products for actual securities

Re: Flipboard releases React Canvas

#45

Oh my, it is beautiful on the inside. Check out the source. They're totally showing off the power of React component model even when it doesn't render directly to DOM tree: https://github.com/Flipboard/react-canvas/blob/master/lib/Su... It's about describing nested side effects in time, really.

Looking at the author, not surprising. I was an intern in Yahoo! Mobile's web team in 2009, and sat beside Michael Johnston. He was incredibly productive and talented, and was the backbone of the whole mobile team. Everyone came to him for advice. I remember he wrote a sophisticated color picker in an afternoon, and the code was a work of art.

Re: Flipboard releases React Canvas

#46

Looks really good. My only real question would be about something drab but practical: SEO. As the components are rendered to canvas, would the metadata that usually feeds SEO be harder to generate? Is that something you could fix through use of the parallel DOM (it's mentioned briefly on the page)?

See this note: https://github.com/flipboard/react-canvas#accessibility

Re: Flipboard releases React Canvas

#47
post #17

Oh my, it is beautiful on the inside. Check out the source. They're totally showing off the power of React component model even when it doesn't render directly to DOM tree: https://github.com/Flipboard/react-canvas/blob/master/lib/Su... It's about describing nested side effects in time, really.

I actually wonder if it can be done even more elegant with RxJS?

Thanks for the heads up about RxJS, didn't know that existed.

Seeing as one of the benefits of React is in server-side rendering, and now with the new OSS nature of .NET, it's worth considering standard Rx as well ( https://msdn.microsoft.com/en-gb/data/gg577609.aspx ).

Rx is very new to me, so I may have this description wrong, but it essentially seems to be well-supported event-driven programming library. Worth a look if you're interested in FRP.

Re: Flipboard releases React Canvas

#49
post #40

What are the accessibility implications of drawing all controls of a web app to the canvas using React? Are there ARIA annotations available for React already?

I don't know the specifics of how canvas accessibility does or doesn't work, but React definitely supports adding ARIA attributes to any tags it renders.

That's one of the problems with rendering UIs on canvas: it doesn't work with a11y. And since it's not rendering tags, there's nowhere to hang the ARIA attributes.

Re: Flipboard releases React Canvas

#50
> There is experimental support for using css-layout to style React Canvas components.

Just an experiment, but that could be very powerful. A lot of canvas-eligible projects are done in the dom because CSS makes it easier that messing with hardcoding all the style in js functions.

Post reply on HN