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 {createContext, useContext} from 'react';
    
  11. 
    
  12. const A = createContext(1);
    
  13. const B = createContext(2);
    
  14. 
    
  15. export function Component() {
    
  16.   const a = useContext(A);
    
  17.   const b = useContext(B);
    
  18. 
    
  19.   // prettier-ignore
    
  20.   const c = useContext(A), d = useContext(B); // eslint-disable-line one-var
    
  21. 
    
  22.   return a + b + c + d;
    
  23. }