Skip to content

Instantly share code, notes, and snippets.

@ufo2mstar
Created February 15, 2018 05:34
Show Gist options
  • Save ufo2mstar/ca631f21f214e542cb5ca270f4838fd8 to your computer and use it in GitHub Desktop.
Save ufo2mstar/ca631f21f214e542cb5ca270f4838fd8 to your computer and use it in GitHub Desktop.
Just storing some of my experiments for future reference
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