JS.weekly() => #51: NodeJS logging

Why React Hooks, infinite scrolling, Dev Tool improvement and React Editext

JavaScripting.com
JS.weekly()
2 min readAug 13, 2019

--

NodeJS logging made right

“ What’s nagging you the most when you think about logging in NodeJS? If you ask me I’m gonna say lack of of industry standards for creating trace IDs. Within this article we’ll overview how we can create these trace IDs (meaning we’re going to briefly examine how continuation local storage a.k.a CLS works) and dig deep into how we can utilize Proxy to make it work with ANY logger.”

Why React Hooks?

“ The marketing pitch for Hooks is that you’re able to use state inside function components. In reality, Hooks are much more than that. They’re about improved code reuse, composition, and better defaults. There’s a lot more to Hooks we still need to cover, but now that you know WHY they exist, we have a solid foundation to build on.”

Infinite Scrolling the right way

“Making a performant infinite scroll feature is difficult. However, with Intersection Observer API, this can be done well and performant. In addition to infinite scroll, Intersection Observer can be used to lazy load images, run animations, and many other things. Feel free to try out the complete demo on jsFiddle below and let us know what you think!”

We are adding new libraries to JavaScripting.com every week. Here is one worth checking out:

React Editext

Editable Text Component for React Apps.

JS.weekly() is a weekly digest of the best JavaScript articles, hand-picked by our experts in the JavaScripting community, sponsored by Salsita Software. Don’t forget to follow us on Twitter.

--

--

JavaScripting.com
JS.weekly()

The best JavaScript, web development and general programming articles of the day. Sponsored by Salsita Software (http://www.salsitasoft.com)