mirror of
https://github.com/documentationjs/documentation.git
synced 2025-12-08 18:23:43 +00:00
* build: Use Flow syntax without comments. We're switching to Flow annotations - not Flow comments. This gives documentation.js the ability to self-document without JSDoc types and improves our compatibility with tools like prettier. Fixes #729. Fixes #709
13 lines
216 B
JavaScript
13 lines
216 B
JavaScript
/**
|
|
* apples
|
|
*/
|
|
function apples() {}
|
|
|
|
var HelloMessage = React.createClass({
|
|
render: function() {
|
|
return <div>Hello {this.props.name}</div>;
|
|
}
|
|
});
|
|
|
|
ReactDOM.render(<HelloMessage name="John" />, mountNode);
|