Compile your jsx files with dieter.
In your project.clj file
[dieter/react "0.1.0"]
Insert it into your ring middleware stack
(use '[dieter :only [asset-pipeline]])
(require 'dieter.asset.react)
(-> app
(asset-pipeline config-options))
Your .jsx files will now be compiled with react. Remember to include the JSX pragma!
/** @jsx React.DOM */
Copyright (C) 2014 Stephen Pike
Distributed under the Eclipse Public License, the same as Clojure.
Can you improve this documentation?Edit on GitHub
cljdoc builds & hosts documentation for Clojure/Script libraries
Ctrl+k | Jump to recent docs |
← | Move to previous article |
→ | Move to next article |
Ctrl+/ | Jump to the search field |