Skip to content

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