|
You are here |
bitsofco.de | ||
| | | | |
jshakespeare.com
|
|
| | | | | Say you want to display a numeric value on a webpage with a count-up animation, like this: There are a few popular libraries that will do this for you, often with lots of configurable bells and whistles. I'm always reluctant to add a dependency to my application that I could write myself in under an hour (and you should be too), so I did just that. Here's the code in vanilla JavaScript using the DOM API (CodePen here): // How long you want the animation to take, in ms const animationDuration = 2000; // C... | |
| | | | |
refine.dev
|
|
| | | | | We will explain the differences between useRef and React ref. | |
| | | | |
lukesingham.com
|
|
| | | | | For someone with some programming experience and understanding who wants to focus on improving JavaScript skills, working with the APIs and developing with the browser this is a fantastic course. | |
| | | | |
yakovfain.com
|
|
| | | In the previous blog, I generated a new React/TypeScript app using the create-react-app tool. In this blog, you'll get familiar with two types of React components, and what a component's state is for. Two types of React components A React component can be declared either as a function or as a class. A functional component... | ||