1. /**
    
  2.  * Copyright (c) Meta Platforms, Inc. and affiliates.
    
  3.  *
    
  4.  * This source code is licensed under the MIT license found in the
    
  5.  * LICENSE file in the root directory of this source tree.
    
  6.  *
    
  7.  * @flow
    
  8.  */
    
  9. 
    
  10. import * as React from 'react';
    
  11. 
    
  12. class Custom {
    
  13.   _number = 42;
    
  14.   get number(): number {
    
  15.     return this._number;
    
  16.   }
    
  17. }
    
  18. 
    
  19. export default function CustomObject(): React.Node {
    
  20.   return <ChildComponent customObject={new Custom()} />;
    
  21. }
    
  22. 
    
  23. function ChildComponent(props: any) {
    
  24.   return null;
    
  25. }