react-component-boundary 1.0.1 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +6 -6
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -25,25 +25,25 @@ npm install react-component-boundary
25
25
  # Basic Usage
26
26
 
27
27
  ```jsx
28
- import { ErrorBoundary } from "react-component-boundary";
28
+ import { ComponentBoundary } from "react-component-boundary";
29
29
 
30
- <ErrorBoundary customErrorMessage="Something went wrong">
30
+ <ComponentBoundary customErrorMessage="Something went wrong">
31
31
  <YourComponent />
32
- </ErrorBoundary>;
32
+ </ComponentBoundary>;
33
33
  ```
34
34
 
35
35
  # Custom Error UI
36
36
 
37
37
  ```jsx
38
- <ErrorBoundary fallback={<div>Custom Error UI</div>}>
38
+ <ComponentBoundary fallback={<div>Custom Error UI</div>}>
39
39
  <YourComponent />
40
- </ErrorBoundary>
40
+ </ComponentBoundary>
41
41
  ```
42
42
 
43
43
  # Props API
44
44
 
45
45
  ```ts
46
- interface ErrorBoundaryProps {
46
+ interface ComponentBoundaryProps {
47
47
  children: React.ReactNode;
48
48
  customErrorMessage?: string;
49
49
  className?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-component-boundary",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "access": "public",
5
5
  "description": "A reusable React Error Boundary",
6
6
  "keywords": [