Skip to content

Commit 050cfd0

Browse files
committed
configure netlify for demo
1 parent 2739a0c commit 050cfd0

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

.netlify/state.json

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"siteId": "2a1afe72-f69d-409b-8a40-fc1cfacc1900"
3+
}

demo/src/index.js

+7-3
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ function Demo() {
2323
</div>
2424
<div className="container child two">
2525
<ComponentTwo />
26+
<ErrorBoundary fallback={<Fallback />}>
27+
<ComponentWithChaos3 />
28+
</ErrorBoundary>
2629
</div>
2730
<div className="container child three">
2831
<ComponentThree />
@@ -57,10 +60,11 @@ const ComponentWillHaveChaos2 = () => (
5760
</NestedComponent>
5861
);
5962

60-
const ComponentWithChaos = withChaos(ComponentWillHaveChaos, 1, "a custom error message, level 1");
61-
const ComponentWithChaos2 = withChaos(ComponentWillHaveChaos2, 3, "a custom error message, level 3");
63+
const ComponentWithChaos = withChaos(ComponentWillHaveChaos, 1, "a custom error message, level 1", true);
64+
const ComponentWithChaos2 = withChaos(ComponentWillHaveChaos2, 3, "a custom error message, level 3", true);
65+
const ComponentWithChaos3 = withChaos(ComponentWillHaveChaos2, 5, "a custom error message, level 5", true);
6266

63-
const ComponentTwo = () => <GenericComponent text="Two" />
67+
const ComponentTwo = () => (<GenericComponent text="Two" />)
6468

6569
const ComponentThree = () => (
6670
<NestedComponent>

0 commit comments

Comments
 (0)