Too many useState? Let's useReducerModern Frontend is similar to good old web development, but with one catch: the page in the browser is as sophisticated as the backend. Since we learned to load things asynchronously, we want to keep the user as productive as possible and not show an...Mar 28, 2023·7 min read
Today's npm package: themingToday's npm package is theming With rise of CSS-in-JS, managing and maintaining the design tokens can be hard. Today's package theming will help you manage the design tokens for your React project with CSS-in-JS in consistent way. Here is a small exa...Jul 5, 2021·1 min read
Today's npm package: style-to-jsToday's npm package is style-to-js If you are working with a UI project where you are accepting CSS styles from users to be applied at a later time. It will be easier & better to save them as JS Object as it can help in removing the rules duplication...Jul 4, 2021·1 min read
Today's npm package: css-in-js-utilsToday's npm package is css-in-js-utils This package is NOT for general public use. Only if you are making a CSS-in-JS lib, this package might be helpful. This package provides following functions: assignStyle(base, ...extend) camelCaseProperty(prope...Jun 27, 2021·1 min read
Today's npm package: slack-nodeToday's npm package is slack-node Slack is the new center of all the communication in Companies. And in your JS apps, while automating tasks for the projects, it would be better to get notified of messages and status as soon as things happen. slack...Jun 26, 2021·1 min read
Today's npm package: watchrToday's npm package is watchr When creating CLI utilities, if you are dealing with files, would't it be great to be able to react to the file changes. This package would help you do the same. Here is how you can use this package to watch for currentl...Jun 25, 2021·1 min read
Today's npm package: color-alphaToday's npm package is color-alpha Color Alpha will let you customize the Alpha i.e. opacity of the colour in JS Very useful in cases when → Adjusting minimal inline styles → Working with CSS-in-JS → Maintaining a Design System → Creating and Mainta...Jun 24, 2021·1 min read