Hacker News new | ask | show | jobs
by blindseer 1569 days ago
I'm not well versed in React so only clicked into this article out of mild curiosity. If anyone is interested in discussing the non-technical aspects of this submission, please continue reading this comment :)

What do people think of the foray of these blog posts with embedded javascript components? It appears that this a nice way to provide interactive explanation on subjects. I think this post does a nice job. That said, the website experience is always a little off when someone uses components like this. For example, if you open the page and quickly scroll down, you get lots of flashes of the page layout changing. Also, the back history button seems to be broken after visiting this page. I think the website pushes itself to the browser history or something?

3 comments

I couldn't reproduce issues with the back button.

But I barely notice the flashing / layout changes on this 2009 iMac I'm using at the moment. It's surely worth the ability to show live code that I can see and play with. It's a lot less disruptive than having to open up a React-ready playground myself and copying in the code, that's for sure.

I'll take this over static code any day when the point is to show the implication of live code as it's done in this sort of blog post.

I had some issues with re-scrolling here on Safari, but not too bad. Probably a minor fix.
The latter half of the article had some quite bad scrolling problems for me on mobile safari.
I’d be much happier if that blog post’s text wasn’t a low contrast yellow on a black background. I switched over to reader view and didn’t see any JS components.