import React from 'react'; import {Component} from 'react'; import {findDOMNode} from 'react-dom'; import {Link} from 'react-router-dom'; import {connect} from 'react-redux'; import {store} from '../store'; import ThemeContext from './shared/ThemeContext'; import Clock from './shared/Clock'; store.subscribe(() => { console.log('Counter:', store.getState()); }); class AboutSection extends Component { componentDidMount() { // The modern app is wrapped in StrictMode, // but the legacy bits can still use old APIs. findDOMNode(this); } render() { return ( {theme => (

src/legacy/Greeting.js

This component is rendered by the nested React ({React.version}).

Counter: {this.props.counter}{' '}

Go to Home
)}
); } } function mapStateToProps(state) { return {counter: state}; } export default connect(mapStateToProps)(AboutSection);