Files
react/shells/dev/app/InspectableElements/CustomObject.js
2019-06-12 15:43:15 -07:00

19 lines
274 B
JavaScript

// @flow
import React from 'react';
class Custom {
_number = 42;
get number() {
return this._number;
}
}
export default function CustomObject() {
return <ChildComponent customObject={new Custom()} />;
}
function ChildComponent(props: any) {
return null;
}