Why would you write Typescript this way? The Lisp > EcmaScript should be way more terse.
257 karma · joined December 14, 2012
My notion of composition with classes would be:
class Dog(object):
def __init__():
self.wagger = Wagger(); #composing the Wagger class
in python mixins look like this: class Dog(object, WaggerMixin):
...etc... React.createElement(
"div",
null,
React.createElement(
"div",
null,
React.createElement(
"p",
null,
React.createElement(
"a",
{ href: "foo" },
"Link"
)
)
)
);
document.getElementById('root')
);