
Tags→#javascript
State of JS 2022
Superb stats on the state of JavaScript. TLDR: NextJS still nice, Svelte is great, and watch Solid. Vite or Turbopack replaces Webpack. Playwright replaces Cypress. Turborepo replaces Lerna.
Stop using defaultProps
In functional components, default argument values beat defaultProps. Use the language, not the library.
Stop using default exports
Default exports look cleaner on the import line, then break find-usages, rename, and go-to-definition in your own code.
Gatsby won't last
Gatsby is React meeting WordPress. Cool static pages, but the plugin trash pile will be the end of it.
A Prettier JavaScript Formatter
While ESLint eliminated the need for people to talk about code conventions, Prettier can eliminate the need for people to think about code formatting. 10 000 thumbs up! I will never work for a company without autoformatting again.
React Conf 2017: A Prettier Printer
While ESLint eliminated the need for people to talk about code conventions, Prettier can eliminate the need for people to think about code formatting. 10 000 thumbs up! I will never work for a company without autoformatting again.