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. const arrayOne: $FlowFixMe = [];
    
  13. const arrayTwo: $FlowFixMe = [];
    
  14. arrayTwo.push(arrayOne);
    
  15. arrayOne.push(arrayTwo);
    
  16. 
    
  17. type ObjectOne = {
    
  18.   objectTwo?: ObjectTwo,
    
  19. };
    
  20. type ObjectTwo = {
    
  21.   objectOne: ObjectOne,
    
  22. };
    
  23. 
    
  24. const objectOne: ObjectOne = {};
    
  25. const objectTwo: ObjectTwo = {objectOne};
    
  26. objectOne.objectTwo = objectTwo;
    
  27. 
    
  28. export default function CircularReferences(): React.Node {
    
  29.   return <ChildComponent arrayOne={arrayOne} objectOne={objectOne} />;
    
  30. }
    
  31. 
    
  32. function ChildComponent(props: any) {
    
  33.   return null;
    
  34. }