backbone.marionette.jsx
v0.1.1
Published
Use JSX in your backbone marionette views.
Downloads
5
Readme
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>
)
}
}