title: export variable from class React
body: <p>In my app.js inside the app class there is a variable that I want to export to another module. I tried many options, but unfortunately, the understanding of how to do it correctly did not come. Tell me, please, how to do it right? Export default is already in use in my class</p>
  
  <pre><code>export class App extends Component {
      static propTypes = {
          //somecode
      };
  
      constructor(...args: any): void {
          super(...args);
      }
  
      render() {
          // console.log('app render start');
          const test = true;
          return (
          //somecode
          );
      }
  
      componentDidMount() {
          //somecode
      }
  
  
      componentDidUpdate(prevProps): void {
          //somecode
      }
  }
  </code></pre>
  
  <p>In the example above, i need to export variable 'test'</p>
  
  <p>I would be grateful for any help.</p>