Solution

App.js

import React from 'react';
import ReactDOM from 'react-dom';

import Title from '../Title';

class App extends React.Component {
  render() {
    return (
      <Title />
    );
  }
}

ReactDOM.render(<App/>, document.getElementById('container'));

Title.js

import React from 'react';

export default function Title() {
  return (
    <h1>😺 Emoji picker 🐶</h1>
  );
}

Last updated