snabbdom-jsx-class

Write snabbdom views using JSX and Babel

Usage no npm install needed!

<script type="module">
  import snabbdomJsxClass from 'https://cdn.skypack.dev/snabbdom-jsx-class';
</script>

README

Fork from yelouafi/snabbdom-jsx

Difference:

With yelouafi/snabbdom-jsx a components may be declared as:

  • JSX markup
  • an object literal with a function assigned to view property which returns JSX markup
  • a regular function which returns JSX markup

With this version:

  • JSX markup
  • an object literal with a function assigned to view property which returns JSX markup
  • an ES6 class with view method which returns JSX markup