import React from 'react';

const Profile = React.createClass({
  render() {
    return (
      <div>
        Profile
      </div>
    )
  }
});

export default Profile;

import React, { Component } from 'react';

export default class Profile extends Component {
  constructor (props){
    super(props);
  }

  render() {
    return (
      <div>
        Profile
      </div>
    )
  }
}

migrate class to component