DEV Community

Discussion on: 3 ways to import node modules in deno

michaelcurrin profile image
Michael Currin • Edited on

I didn't know about the first two approaches.

Yeah third is definitely the best

I use that approach to run a Deno React project using for the packages

And that includes a pinned URL for safety.

Additionally, the importing by URL is built into browsers if you do script tag

<script type="module">
  import ReactDOM from "";
  import React from "";

Enter fullscreen mode Exit fullscreen mode

That is demonstrated here in my React app that uses no Deno or Node. Just a frontend