hello-worlds
hello-worlds copied to clipboard
Make webworkers optional
currently web workers are required, this is not ideal because
- web workers require special bundling
- they're usually not beginner friendly
- they're not always necessary
- it's difficult to share codesandboxes because of same domain rules, which breaks previews
So make the worker prop optional and default to a shared implementation that happens on the main thread