import ChildProps from './child';
interface ParentProps {
data: ChildProps
}
export default class Parent extends React.Component<ParentProps, {}> {
constructor(props){
super(props);
}
render() {
return (
<div>
<Child items={this.props.data}/>
</div>
);
}
}
import ChildProps from './child';
interface ParentProps {
data: ChildProps
}
export default class Child extends React.Component<ParentProps, {}> {
constructor(props){
super(props);
}
render() {
return (
<div>
<Child items={this.props.data}/>
</div>
);
}
}
interface ChildProps {
items: any;
}
export default class Child extends React.Component<ChildProps, {}> {
constructor(props){
super(props);
}
render() {
const items = this.props.items;
return (
<div>
</div>
);
}
}
export default ChildProps;
interface Props {
items: any;
}
class Child extends React.Component<Props, {}> {
constructor(props){
super(props);
}
render() {
const items = this.props.items;
return (
<div>
</div>
);
}
}
interface Props {
data: any;
}
class Parent extends React.Component<Props, {}> {
constructor(props){
super(props);
}
render() {
return (
<div>
<Child items={this.props.data}/>
</div>
);
}
}