From b39937749f33d51bb0016ec976980ca0c68307a9 Mon Sep 17 00:00:00 2001 From: Rayus7 Date: Fri, 5 Apr 2024 09:43:34 +0200 Subject: [PATCH] fix tutorial: default export to named export --- docs/tutorial/static-view.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/tutorial/static-view.md b/docs/tutorial/static-view.md index b0c63133c5..cabadbd851 100644 --- a/docs/tutorial/static-view.md +++ b/docs/tutorial/static-view.md @@ -21,7 +21,7 @@ Now let's replace the contents of the file with a blank view: import { PageContext, AbstractComponent } from '@ima/react-page-renderer'; import React from 'react'; -export default class HomeView extends AbstractComponent { +export class HomeView extends AbstractComponent { static get contextType() { return PageContext; }