import React from 'react';
import { Link } from 'react-router';

export default class Nav extends React.Component {
  constructor(props) {
    super(props);
    this.state = {
      showText: false,
    };
  }

  handleClick() {
    this.setState({
      showText: true,
    });
  }

  render() {
    return (
      <div>

        { this.props.onLandingPage ? <Link to="profile">Profile</Link> :
        <div>
          <Link to="/">Home</Link>
          <Link to="text">TextView</Link>
          <Link to="speech">Speech</Link>
          <Link to="profile">Profile</Link>
        </div>
        }
      </div>
    );
  }
}

import React from 'react';
import { Link } from 'react-router';

export default class Nav extends React.Component {
  constructor(props) {
    super(props);
    this.state = {
      showText: false,
    };
  }

  handleClick() {
    this.setState({
      showText: true,
    });
  }

  render() {
    return (
      <div>
        {
          this.props.onLandingPage ? <Link to="profile">Profile</Link> :
            <div>
              <Link to="/">Home</Link>
              <Link to="text">TextView</Link>
              <Link to="speech">Speech</Link>
              <Link to="profile">Profile</Link>
            </div>
        }
      </div>
    );
  }
}

Clean up code and spacing
Clean up code and spacing
