Skip to content

Commit 013b2bf

Browse files
committed
replaced old commonjs import with new es6 syntax
1 parent 562637a commit 013b2bf

File tree

9 files changed

+15
-15
lines changed

9 files changed

+15
-15
lines changed

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-es7",
3-
"version": "0.0.6",
3+
"version": "0.0.7",
44
"homepage": "https://github.com/hipertracker/react-es7",
55
"authors": [
66
"Jaroslaw Zabiello <[email protected]>"

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-es7",
3-
"version": "0.0.6",
3+
"version": "0.0.7",
44
"description": "Example of using React + Reflux + router + ES6 with experimental ES7 syntax + Jest + Semantic-UI",
55
"main": "src/index.js",
66
"scripts": {

src/app/actions/LinksActions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const Reflux = require('reflux');
1+
import * as Reflux from 'reflux';
22

33
const LinksActions = Reflux.createActions([
44
'loadData',

src/app/components/About.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
const React = require('react');
2-
const {Segment} = require('react-semantify');
1+
import * as React from 'react';
2+
import {Segment} from 'react-semantify';
33

44
const About = React.createClass({
55
render() {

src/app/components/App.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
const React = require('react');
2-
const ReactRouter = require('react-router');
3-
const {Menu, Segment} = require('react-semantify');
1+
import * as React from 'react';
2+
import * as ReactRouter from 'react-router';
3+
import {Menu, Segment} from 'react-semantify';
44

55
const RouteHandler = ReactRouter.RouteHandler;
66
const Link = ReactRouter.Link;

src/app/components/Home.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
const React = require('react');
1+
import * as React from 'react';
22
import UsefulLinks from './UsefulLinks';
3-
const {Segment} = require('react-semantify');
3+
import {Segment} from 'react-semantify';
44

55
const Home = React.createClass({
66
render() {

src/app/components/UsefulLinks.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
const React = require('react');
2-
const Reflux = require('reflux');
1+
import * as React from 'react';
2+
import * as Reflux from 'reflux';
33
import LinksActions from '../actions/LinksActions';
44
import LinksStore from '../stores/LinksStore';
55
import {m} from '../lib/tools';

src/app/lib/tools.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
const React = require('react');
2-
const _ = require('lodash');
1+
import * as React from 'react';
2+
import * as _ from 'lodash';
33

44
// mounting a React component to a selector id location
55
export function mount(component, location, argv = {}) {

src/app/stores/LinksStore.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const Reflux = require('reflux');
1+
import * as Reflux from 'reflux';
22
import LinksActions from '../actions/LinksActions';
33

44
const LinksStore = Reflux.createStore({

0 commit comments

Comments
 (0)