How to export a component in React

React
By Jad Joubran · 
Last updated Mar 18, 2020
import React from "react";

export default function Navbar() {
  return <div>Navbar here</div>;
}