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

Conversation

sagarhani
Copy link

@sagarhani sagarhani commented Sep 22, 2018

Instead of referencing React.Component we can use ES6 to pull Component from React by saying :

import React, { Component } from 'react';

And, use Component directly instead of React.Component
🍪

@sagarhani sagarhani changed the title Used ES6 syntax to use React's { Component } instead of referencing it as React.Component 🍪 Used ES6 syntax to use React's { Component } instead of referencing it as React.Component Sep 22, 2018
@codecov
Copy link

codecov bot commented Sep 22, 2018

Codecov Report

Merging #440 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #440   +/-   ##
=======================================
  Coverage   97.76%   97.76%           
=======================================
  Files         112      112           
  Lines        4386     4386           
=======================================
  Hits         4288     4288           
  Misses         98       98

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b5ff9b8...a522c1d. Read the comment docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants