mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2025-12-19 17:02:54 +00:00
23 lines
330 B
TypeScript
23 lines
330 B
TypeScript
import * as React from 'react';
|
|
|
|
interface Props {
|
|
name: string;
|
|
}
|
|
|
|
class SubModule extends React.Component<Props> {
|
|
static defaultProps = {
|
|
name: 'abc',
|
|
};
|
|
|
|
render() {
|
|
const { name } = this.props;
|
|
return <div>hello, {name}</div>;
|
|
}
|
|
}
|
|
|
|
SubModule.defaultProps = {
|
|
name: 'abc',
|
|
};
|
|
|
|
export default SubModule;
|