houdini/lib/generators/react/component/templates/component.tsx.erb

21 lines
439 B
Text
Raw Normal View History

2018-03-29 19:10:27 +00:00
// License: LGPL-3.0-or-later
import * as React from 'react';
import { observer } from 'mobx-react';
import {InjectedIntlProps, injectIntl} from 'react-intl';
2018-03-29 19:10:27 +00:00
export interface <%= file_name.camelize %>Props
{
}
class <%= file_name.camelize %> extends React.Component<<%= file_name.camelize %>Props & InjectedIntlProps, {}> {
2018-03-29 19:10:27 +00:00
render() {
return <div></div>;
}
}
export default injectIntl(observer(<%= file_name.camelize %>))