mirror of
https://github.com/hanzoai/prettier.git
synced 2026-09-24 17:02:04 +00:00
18 lines
290 B
JavaScript
18 lines
290 B
JavaScript
// @flow
|
|
|
|
var React = require('react');
|
|
|
|
type FooState = {
|
|
key: ?Object;
|
|
};
|
|
|
|
var Comp = React.createClass({
|
|
getInitialState: function(): FooState {
|
|
return {
|
|
key: null, // this used to cause a missing annotation error
|
|
};
|
|
}
|
|
});
|
|
|
|
module.exports = Comp;
|