This is the standard edX header for use in React applications. It has two exports:
- default: The Header Component
- messages: for i18n in the form of
{ locale: { key: translatedString } }
import Header, { messages } from '@edx/frontend-component-header-edx';
- Install requirements npm install
- Install peer dependencies npm install @edx/frontend-analytics @edx/frontend-base @edx/frontend-i18n prop-types react
- Start the example server npm start
- Visit http://localhost:1234