0.1.1 • Published 6 years ago

backbone.marionette.jsx v0.1.1

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

backbone.marionette.jsx

A very lightweight (326 bytes gzipped!) library to use JSX in your backbone marionette views.

This library assumes you already have react and react-dom installed.

Installation

npm install --save backbone.marionette.jsx or yarn add backbone.marionette.jsx

Usage

import Mn from 'backbone.marionette';
import { jsxView } from 'backbone.marionette.jsx'

@jsxView
export default class ViewUsingJSX extends Mn.View {
  template() {
    return (
      <h1>Hey! It's JSX in my Marionette</h1>
    )
  }
}