`export default thing` behaves differently to `export { thing as default }`

This page summarizes the projects mentioned and recommended in the original post on /r/javascript

Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • idb

    IndexedDB, but with promises

  • Here is link number 1 - Previous text "idb"

  • idb-keyval

    A super-simple-small promise-based keyval store implemented with IndexedDB

  • I'm not sure this is clear cut. Take idb-keyval for instance. The exported names are get and set. If someone was import them individually I'd totally understand why they might them different names to make the context clear. Eg:

  • SurveyJS

    Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.

    SurveyJS logo
  • javascript

    JavaScript Style Guide

  • Well, I think it's matter of preference. You can read https://github.com/airbnb/javascript/issues/1365 to a get general idea and also don't forget to also read this https://basarat.gitbook.io/typescript/main-1/defaultisbad.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts