JSFiddle - React, Tailwind, and code Playground
by sfoster
HTML
<div class="content">
<h1>AMD + Dojo</h1>
<p id="about">
Greetings <span id="greeting">...</span>
</p>
</div>
<script src="http://sfoster.dojotoolkit.org/sandbox/require-1.0.1.js"></script>
JavaScript
require({
// configure our AMD loader
// baseUrl: './lib',
paths: {
// package mappings
dojo: 'http://download.dojotoolkit.org/release-1.7.0/dojo-release-1.7.0/dojo'
}
}, [
// the modules we want to use
'dojo/dom'
], function(dom){
// use the byId method from our dom module
var greetingNode = dom.byId('greeting')
greetingNode.innerHTML = "via dojo/dom";
});