// Set up Semantic's api module//Aui$fnapisettingsmethod = 'POST'Aui$fnapisettingsapi =login: '/echo/json/?delay=2'var Example = ReactReact;
This will result in something like this after React's render on the dom:
Make sure to include react.js, jquery.js, semantic.js, and semantic.css on your page
Aui is also available on Bower!
You may also may wish to use Browserify or some other CommonJS style bundler:
// If you wish to load Semantic, jQuery, and React from the window object:var Aui =// If you wish to bundle Semantic, jQuery, and Reactvar Aui =
If you use coffee-script and wish to go native:
Aui = require 'aui/.coffee'# orAui = require 'aui/externals.coffee'