import React, { PropTypes } from 'react'; import InlineSVG from 'react-inlinesvg'; import { browserHistory } from 'react-router'; const exitUrl = require('../../../images/exit.svg'); const squareLogoUrl = require('../../../images/p5js-square-logo.svg'); const playUrl = require('../../../images/play.svg'); const asteriskUrl = require('../../../images/p5-asterisk.svg'); class About extends React.Component { constructor(props) { super(props); this.closeAboutModal = this.closeAboutModal.bind(this); } componentDidMount() { this.aboutSection.focus(); } closeAboutModal() { browserHistory.push(this.props.previousPath); } render() { return (
{ this.aboutSection = element; }} tabIndex="0">

Welcome

Play hello! video

New to p5.js?

Examples

Tutorials

Resources

Libraries

Reference

Forum

Contribute

Report a bug

Twitter

); } } About.propTypes = { previousPath: PropTypes.string.isRequired }; export default About;