Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Used ES6 syntax to use React's { Component } instead of referencing it as React.Component #440

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions examples/counter/core/components/Root.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import React from 'react';
import React, { Component } from 'react';
import { observe, streamProps } from 'frint-react';

import {
incrementCounter,
decrementCounter
} from '../actions/counter';

class Root extends React.Component {
class Root extends Component {
render() {
return (
<div className="container">
Expand Down
4 changes: 2 additions & 2 deletions examples/kitchensink/app-color/components/Root.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from 'react';
import React, { Component } from 'react';
import { observe } from 'frint-react';
import { Observable } from 'rxjs/Observable';
import { concatMap } from 'rxjs/operator/concatMap';
Expand All @@ -18,7 +18,7 @@ import {
CHANGE_COLOR_ASYNC
} from '../constants';

class Root extends React.Component {
class Root extends Component {
static propTypes = {
color: PropTypes.string,
counter: PropTypes.number,
Expand Down
4 changes: 2 additions & 2 deletions examples/kitchensink/app-counter/components/Root.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from 'react';
import React, { Component } from 'react';
import { observe, streamProps } from 'frint-react';
import PropTypes from 'prop-types';

Expand All @@ -7,7 +7,7 @@ import {
decrementCounter
} from '../actions/counter';

class Root extends React.Component {
class Root extends Component {
static propTypes = {
color: PropTypes.string,
counter: PropTypes.number,
Expand Down
4 changes: 2 additions & 2 deletions examples/kitchensink/app-reversed/components/Root.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import React from 'react';
import React, { Component } from 'react';
import { observe } from 'frint-react';
import { map } from 'rxjs/operator/map';
import { scan } from 'rxjs/operator/scan';

class Root extends React.Component {
class Root extends Component {
render() {
return (
<div>
Expand Down
4 changes: 2 additions & 2 deletions examples/kitchensink/app-todos/components/Item.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import React from 'react';
import React, { Component } from 'react';
import { observe, streamProps, Region } from 'frint-react';
import { BehaviorSubject } from 'rxjs/BehaviorSubject';

import { removeTodo, updateTodo } from '../actions/todos';

class Item extends React.Component {
class Item extends Component {
render() {
const { todo } = this.props;

Expand Down
4 changes: 2 additions & 2 deletions examples/kitchensink/app-todos/components/Root.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from 'react';
import React, { Component } from 'react';
import { observe } from 'frint-react';
import { BehaviorSubject } from 'rxjs/BehaviorSubject';
import { Observable } from 'rxjs/Observable';
Expand All @@ -8,7 +8,7 @@ import { scan } from 'rxjs/operator/scan';
import { addTodo } from '../actions/todos';
import Item from './Item';

class Root extends React.Component {
class Root extends Component {
render() {
return (
<div>
Expand Down
4 changes: 2 additions & 2 deletions examples/kitchensink/core/components/Root.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import React from 'react';
import React, { Component } from 'react';
import { Region, observe } from 'frint-react';
import { BehaviorSubject } from 'rxjs/BehaviorSubject';
import { Observable } from 'rxjs/Observable';

class Root extends React.Component {
class Root extends Component {
render() {
return (
<div className="container">
Expand Down
4 changes: 2 additions & 2 deletions examples/multiple-apps/app-bar/components/Root.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from 'react';
import React, { Component } from 'react';
import { observe, streamProps } from 'frint-react';

import {
Expand All @@ -9,7 +9,7 @@ import {
RED_COLOR
} from '../constants';

class Root extends React.Component {
class Root extends Component {
render() {
const codeStyle = {
color: this.props.color,
Expand Down
4 changes: 2 additions & 2 deletions examples/multiple-apps/app-foo/components/Root.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import React from 'react';
import React, { Component } from 'react';
import { observe, streamProps } from 'frint-react';

import {
incrementCounter,
decrementCounter
} from '../actions/counter';

class Root extends React.Component {
class Root extends Component {
render() {
const codeStyle = {
color: this.props.color,
Expand Down
4 changes: 2 additions & 2 deletions examples/multiple-apps/core/components/Root.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react';
import React, { Component } from 'react';
import { Region } from 'frint-react';

export default class Root extends React.Component {
export default class Root extends Component {
render() {
return (
<div className="container">
Expand Down