Hello World!!! -- {this.text} -- {this.state.greetings}
Human {this.state.human != null ? this.state.human.getName() : ""} {this.state.currDate}
{ this.clickHandler(); }} > {this.props.children}
);
}
public clickHandler() {
console.log("clicked. # children " + React.Children.count(this.props.children));
React.Children.forEach(this.props.children, (argx: any) => {
if (argx.hasOwnProperty("props")) {
console.log("props property found");
pubSub.notify("message from outer space !");
}
console.log(JSON.stringify(argx));
});
}
}
}}}
=== greeter.tsx ===
{{{#!highlight javascript
import React from 'react';
import ReactDOM from 'react-dom';
import {getText} from "./lib";
import App from './App'; // uses App.tsx
import NameHolder from './NameHolder';
console.log("Entry point");
let appContainer = document.getElementById('app') ;
let markup =