Files
react/fixtures/devtools/shell/app/InspectableElements/CustomObject.js
2019-08-13 11:11:25 -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;
}