export Keywords are actually a powerful thing that language has. You can use them directly on CodePen of course. For example, with our URL extensions, you can
export Things from one address and
import It’s another without using the external resource feature in settings or something, which might clarify your code.
ES Modules is getting more and more fancy!
give sponsership: Netlify
Among the many incredibly innovative things Netlify has done is to do Offer cloud functions For each site you post on Netlify. You put your functions into a
functions Folder (configurable) and they will act as AWS Lambda functions, without you even having to have an AWS account or deal with all this ritual. Now if you need some server-side code for your static site, you understand that. Incredibly useful for performing any type of dynamic functionality that needs to reach databases or APIs with security. And hey, if you have to
import Stuff, you received.
Post 337: ES Modules on CodePen first appeared on the CodePen blog.