Created
February 15, 2018 05:34
-
-
Save ufo2mstar/ca631f21f214e542cb5ca270f4838fd8 to your computer and use it in GitHub Desktop.
Just storing some of my experiments for future reference
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const Card = () => { | |
class Parent { | |
mtd(){ | |
return "parent" | |
} | |
} | |
class Mid extends Parent { | |
mtd(){ | |
return super.mtd()+"mid" | |
} | |
} | |
class Child extends Mid { | |
mtd(){ | |
return super.mtd()+"child" | |
} | |
} | |
let x = new Child(); | |
return( | |
<div>...{x.mtd()}</div> | |
) | |
} | |
const Try = () => { | |
return ( | |
<div>try</div> | |
); | |
}; | |
ReactDOM.render(<Card />,mountNode) | |
// https://jscomplete.com/repl/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment