Files
test-repo/tests/format/flow-repo/react/createElement_string.js
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

11 lines
202 B
JavaScript
Raw Normal View History

2016-12-23 19:31:38 +00:00
// @flow
import React from 'react';
class Bar extends React.Component {}
class Foo extends React.Component {
render() {
const Cmp = Math.random() < 0.5 ? 'div' : Bar;
return (<Cmp/>);
}
}