Tag: javascript
-

How To Refactor Your Components with React’s useState
The useState hook in React can help you refactor your code into a more concise, legible, and maintainable form. It also makes it easier to interact with APIs.
-

Focusing the End of an HTML Text or Search Input
Make life easier for users filling out forms by including this javascript snippet to auto-focus the end of the text input the user was most recently working on.
-

Treat Javascript Objects like Arrays with Object.keys()
Arrays and Objects are the two most commonly used data structures in JavaScript. Object.keys helps bring them together.