Skip to content
This repository was archived by the owner on Feb 7, 2022. It is now read-only.

Remove no longer used toggle attribute #17

Closed
wants to merge 1 commit into from
Closed

Remove no longer used toggle attribute #17

wants to merge 1 commit into from

Conversation

gsong
Copy link

@gsong gsong commented Apr 17, 2018

No description provided.

@codecov
Copy link

codecov bot commented Apr 17, 2018

Codecov Report

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

Impacted file tree graph

@@           Coverage Diff           @@
##           master      #17   +/-   ##
=======================================
  Coverage   90.77%   90.77%           
=======================================
  Files          14       14           
  Lines         336      336           
  Branches       72       72           
=======================================
  Hits          305      305           
  Misses         21       21           
  Partials       10       10
Impacted Files Coverage Δ
src/exercises-final/05.js 88.88% <ø> (ø) ⬆️

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 1d5a298...50b6598. Read the comment docs.

@@ -13,7 +13,6 @@ class Toggle extends React.Component {
getStateAndHelpers() {
return {
on: this.state.on,
toggle: this.toggle,
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is still useful in some situations, so I definitely suggest continuing to expose this. Remember that prop getters are just helpers and should generally not be the only way to accomplish certain tasks :) Thanks anyway!

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

Successfully merging this pull request may close these issues.

2 participants