1
0
mirror of https://github.com/bobwen-dev/react-templates synced 2025-04-12 00:56:39 +02:00
2017-06-29 10:47:10 +03:00

19 lines
581 B
JavaScript

requirejs.config({
// baseUrl: '/',
paths: {
lodash: '//cdnjs.cloudflare.com/ajax/libs/lodash.js/2.4.1/lodash',
jquery: '//code.jquery.com/jquery-1.11.0.min',
react: '//cdnjs.cloudflare.com/ajax/libs/react/0.13.3/react-with-addons'
},
shim: {
lodash: {exports: '_'},
jquery: {exports: '$'},
react: {exports: 'React'}
}
})
requirejs(['jquery', 'react', 'ImageSearch'], function ($, React, ImageSearch) {
'use strict'
React.renderComponent(ImageSearch(), $('#main').get(0)) //eslint-disable-line new-cap
})