pivot
You-Dont-Need-Lodash-Underscore
pivot | You-Dont-Need-Lodash-Underscore | |
---|---|---|
4 | 25 | |
15 | 18,469 | |
- | 0.6% | |
8.5 | 5.8 | |
8 months ago | about 1 month ago | |
TypeScript | JavaScript | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
pivot
- What are some of the best libraries you cannot work without?
-
Writing Integration Tests that Run Inside a Unit-testing Framework like Jest
We can construct our apps in a way that is headless, where the app itself works without needing to render anything to the DOM. This is what I'm doing with the Pivot framework. An app is created without anchoring to a DOM element, like this:
-
What is not taught in React courses, but is commonly used in a real job and overlooked?
The main benefit for me is testing. For example here I'm integration testing the app inside Vitest, so integration tests take just a few milliseconds and can be debugged much more easily in the IDE.
-
Redux vs Redux toolkit
I've done something similar. I love redux, but RTK is absolutely overkill and tightly couples your business logic to the framework. I ended up creating my own createSlice function and side-effects services: https://github.com/andyjessop/pivot/tree/main/packages/lib/slice
You-Dont-Need-Lodash-Underscore
- What are some of the best libraries you cannot work without?
-
[AskJS] I love new javascript frameworks and libraries. What are some cool ones?
These are all really outdated tips. Moment is deprecated and it is recommended to use dayJs or date-fns. Lodash is discouraged because it has a huge bundle size and nowadays you will find native functions which do most of the things people have used lodash before. https://github.com/you-dont-need/You-Dont-Need-Lodash-Underscore
-
No Lodash
https://github.com/you-dont-need/You-Dont-Need-Lodash-Unders... seems to be a more readable alternative to this website.
- An NPM package that you love and a package that you hate
-
Migrate jQuery to VanillaJS - UpgradeJS.com
Adjacently useful is https://github.com/you-dont-need/You-Dont-Need-Lodash-Underscore
-
What are your favorite, must-have packages when you're creating a project?
I never used lodash but I found this. Might interest you.
- How to Use Lodash in Svelte?
- Help! I removed unused node modules packages and I optimized the imports but the bundle size does not changed
-
I once tried not to use date-fns
In one of my team's Pull Requests I noticed date-fns being added as dependency for our components library for one usage: transform a timestamp to "MM/yy" string, as it represented a debit card's expiration date. Inspired by You don't (may not) need lodash/underscore, I thought to myself - can't we just implement a 2-digit month and 2-digit year formatting? It looks simple, right?
-
Lodash
Yes and no. We did but are converting to in-house code since most Lodash functions are already available as native JS and/or @babel/preset-env + core-js@latest (see: You don't need Lodash).
What are some alternatives?
developer-roadmap - Interactive roadmaps, guides and other educational content to help developers grow in their careers.
just - A library of dependency-free JavaScript utilities that do just one thing.
nivo - nivo provides a rich set of dataviz components, built on top of the awesome d3 and React libraries
eslint-plugin-import - ESLint plugin with rules that help validate proper imports. [Moved to: https://github.com/import-js/eslint-plugin-import]
vitest - Next generation testing framework powered by Vite.
ramda - :ram: Practical functional Javascript
msw - Seamless REST/GraphQL API mocking library for browser and Node.js.
eslint-plugin-svelte3 - An ESLint plugin for Svelte v3 components.
Immer - Create the next immutable state by mutating the current one
babel-plugin-lodash - Modular Lodash builds without the hassle.
bulletproof-react - 🛡️ ⚛️ A simple, scalable, and powerful architecture for building production ready React applications.
stdlib - ✨ Standard library for JavaScript and Node.js. ✨