cross-posted from: https://programming.dev/post/3007051
Tutorial on how to create dual ESM+CJS React component libraries.