Skip to content

Instantly share code, notes, and snippets.

import React from 'react';
const Item = React.createClass({
render() {
return <li>{this.props.value}</li>;
}
});
const List = React.createClass({
render() {
@jevakallio
jevakallio / requirejs-nested-require-calls.js
Last active November 4, 2022 17:54
A sample showcasing some of the things RequireJS can and can not do.
//let's say you have these three AMD modules:
//testmodule1.js
define(function() {
var val = { iAm:'testmodule1.js' };
console.log(val);
return val;
});
//testmodule2.js