import React, { useState } from 'react' import { ErrorBoundary } from 'app/components' const ComponentWithError = () => { throw Error('component error') /* eslint-disable-next-line no-unreachable */ return
} const Demo = () => { const [ isShowErrorComponent, setErrorComponentVisibility ] = useState(false) return <>