Skip to content

Commit 3ec73f5

Browse files
committed
fix: error boundary handling can now be handled by Plugin component
1 parent b6352e5 commit 3ec73f5

File tree

6 files changed

+654
-23
lines changed

6 files changed

+654
-23
lines changed

example-plugin-app/src/PluginOne.jsx

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
import React from 'react';
22
import { Plugin } from '@edx/frontend-platform/plugins';
33

4+
function Greeting({subject}) {
5+
return <div>Hello {subject.toUpperCase()}</div>
6+
}
7+
48
export default function PluginOne() {
59
return (
6-
<Plugin className="bg-light" ready>
7-
<section className="bg-light p-3">
8-
<h2>Site Maintenance</h2>
9-
<p>The site will be going down for maintenance soon.</p>
10-
</section>
10+
<Plugin className="bg-light">
11+
<Greeting />
1112
</Plugin>
1213
);
1314
}

0 commit comments

Comments
 (0)