import React from 'react';

const Spinner = () => {
  return (
    <div className="loader">Loading...</div>
  );
};

export default Spinner;

import React from 'react';

const Spinner = () => (
  <div className="loader">Loading...</div>
);

export default Spinner;

Remove unnecessary braces from spinner
Remove unnecessary braces from spinner
