question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Moving to ES6 Classes

See original GitHub issue

Hi all,

I felt it appropriate to create a new issue (instead of continuing #11552) to further aid everyone in keeping track and update-to-date on the issues and progress surrounding the move to ES6 classes. This should also come in handy for the release doc.

To those wishing to help, look through the list below and let us know what you’d like to work on. A PR per class is favoured however some folders can be done all at once. If a particular file cannot be converted, make a note at the top of the file, or ping me from your PR and I’ll note it below.

Notes:

  • Keep the Class.prototype.is** properties
  • class fields are also available if appropriate #20395 (dicussion here)
  • new this.contructor() != new Foo()related discussion.
  • Will tick after merged and complete.

Part 1: src

Part 2: examples

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:25
  • Comments:159 (121 by maintainers)

github_iconTop GitHub Comments

10reactions
mrdoobcommented, Apr 15, 2021

Sounds good to me 👍

Excellent work everyone! Many thanks for helping out! 🙏

8reactions
DefinitelyMaybecommented, Apr 10, 2021

quick shout out to @Mugen87 ! 🎉 💯 👍 That was a ton from the examples folder done over the past couple of days. Great stuff.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Moving from ES3/ES5 to ES6 JavaScript classes - Andy Walpole
The first is that ES6 classes, unlike function constructors, are not hoisted. This is because the extends clause needs to be evaluated correctly ......
Read more >
A deep dive into ES6 Classes - DEV Community ‍ ‍
In this post we'll learn everything about ES6 classes, then we will compare them to constructor functions and prototypal inheritance.
Read more >
Refactoring React Components to ES6 Classes
With the move to ES6 classes, we must handle this binding ourselves. The React team recommends prebinding in the constructor.
Read more >
Things to keep in mind while Moving from ES3/ES5 to ES6 ...
Classes can have a constructor function which identifies the signature of that Shape class, as well as its body contents.
Read more >
ES6 Classes in Depth - Ponyfoo
JavaScript is a prototype-based language, so what are ES6 classes really? They're syntactic sugar on top of prototypical inheritance – a device ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found