import React from 'react'; import { connect } from 'react-redux'; import ImmutablePureComponent from 'react-immutable-pure-component'; import { fetchAboutPage } from 'soapbox/actions/about'; class AboutPage extends ImmutablePureComponent { state = { pageHtml: '', } loadPageHtml = () => { const { dispatch, match } = this.props; const { slug } = match.params; dispatch(fetchAboutPage(slug)).then(response => { this.setState({ pageHtml: response.data }); }).catch(error => { // TODO: Better error handling. 404 page? this.setState({ pageHtml: '