@10play/error-boundary 中文文档教程
Error Boundary
Simplest Usage
import { ErrorBoundary } from '../lib/error-boundary';
const YourComponentWithBoundary = (props) => (
<ErrorBoundary>
<YourComponent />
</ErrorBoundary>
);
查看故事书文档以获取更多详细信息。
Error Boundary
Simplest Usage
import { ErrorBoundary } from '../lib/error-boundary';
const YourComponentWithBoundary = (props) => (
<ErrorBoundary>
<YourComponent />
</ErrorBoundary>
);
Check storybook docs for more details.