Wrap course components in this. It holds where courses are kept and who is signed in, and reports what happens through its event callbacks.
<CourseProvider storage={storage} currentUser={{ userId: 'coach@example.com', userName: 'Jordan' }}> <CourseLibrary onOpenCourse={(id) => navigate(`/courses/${id}/edit`)} /></CourseProvider> Copy
<CourseProvider storage={storage} currentUser={{ userId: 'coach@example.com', userName: 'Jordan' }}> <CourseLibrary onOpenCourse={(id) => navigate(`/courses/${id}/edit`)} /></CourseProvider>
Wrap course components in this. It holds where courses are kept and who is signed in, and reports what happens through its event callbacks.