mirror of
https://github.com/hanzoai/prettier.git
synced 2026-09-24 17:02:04 +00:00
12 lines
239 B
JavaScript
12 lines
239 B
JavaScript
/* @flow */
|
|
|
|
var React = require('react');
|
|
var Foo = React.createClass({
|
|
propTypes: {
|
|
bar: React.PropTypes.string.isRequired,
|
|
},
|
|
});
|
|
|
|
var props = {bar: 42};
|
|
var blah = <Foo {...props} />; // error bar, number given string expected
|