Choo: Use choo directly in the frontend

Created on 2 Jul 2018  路  2Comments  路  Source: choojs/choo

Is there any way to use choo directly in the frontend without npm?

I mean something like:

<script src="dist/choo.js"></script>
<script>
  // You can use choo now
  var app = choo();
  // app.something() ...
</script>

Most helpful comment

choo and nanohtml includes umd builds. I have set up a minimal example in codepen here.

The key is to refer the bundle files in the dist folder https://unpkg.com/choo/dist/bundle.js (notice that there is also a minified bundler version there)

All 2 comments

choo and nanohtml includes umd builds. I have set up a minimal example in codepen here.

The key is to refer the bundle files in the dist folder https://unpkg.com/choo/dist/bundle.js (notice that there is also a minified bundler version there)

It works!

_Thank you @YerkoPalma_

Was this page helpful?
0 / 5 - 0 ratings

Related issues

MattMcFarland picture MattMcFarland  路  5Comments

idchlife picture idchlife  路  5Comments

NetOperatorWibby picture NetOperatorWibby  路  5Comments

knownasilya picture knownasilya  路  3Comments

corderophi678 picture corderophi678  路  5Comments