module.exports= class APP extends React.Component { constructor(props){ super(props); this.state = { key1:\'key1\', key2:\'key2\' }; rend
Like you do with React.
You have to exchange information through props, or use a library like Redux.