#JavaScript
All tags
-
-
-
Beautiful drag and drop interactions with react hooks.
Recently I needed to enhance a table with drag and drop re-ordering in React. There are lots of solutions out there from roll your own to a library with large dependencies. In this article I explore using an exciting new library called dnd-kit as well as how to integrate it with react-table.
-
Just a friendly reminder that React isn't really Just JavaScript (Don't nest Functional Components)
React is super popular and has often touted itself as "Just JavaScript", but in reality it has lots of quirks and gotchas that come along with it being a framework that adds limitation into JavaScript. Oh, and also write tests!
-
1Adding dynamic content from an API to a static website at build timeSERIES:Â Static sites with dynamic content
You may not need client side JavaScript to add dynamic content from an API. In this article I will show the approach I recently took to embed YouTube playlists into an website created by a static site generator (Elventy), and how this approach lends itself to less JavaScript and progressive enhancement.
-
-
Type checking global JavaScript libraries in VS Code for when you just want learn and code.
Sometimes when you're prototyping and learning a new library you want a quick way to get type-checking/intellisense/auto-complete to assist with your learning. Here is a quick way to enable type checking without fully opting into TypeScript.
-
-
-
Using the Web Share API and meta tags, for simple native sharing
Adding share links for all the various places users can share content from Twitter, to LinkedIn or Reddit and many more, can be a real pain. The Web Share API is growing in support, making sharing content on the web easier than ever. For browsers that don't support the API you can fall back to self generated share targets.
-
-
4
-
3