Skip to content

Instantly share code, notes, and snippets.

🏠
Working from home

Ashutosh Tripathi ashu17706

🏠
Working from home
Block or report user

Report or block ashu17706

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@kentcdodds
kentcdodds / class-fields.js
Created Apr 3, 2018
Example of using class fields
View class-fields.js
// Use class fields!
// https://github.com/tc39/proposal-class-fields
// Here's what you might be doing today...
class A extends B {
constructor(...args) {
super(...args)
this.foo = 'bar'
this.foobar = `${this.foo}bar`
}
You can’t perform that action at this time.