@rhc-shared-components/error-page
v2.0.0
Published
> A common error page component for a certified tech apps
Keywords
Readme
@rhc-shared-components/rhc-error-page
A common error page component for a certified tech apps
Install
npm install --save @rhc-shared-components/rhc-error-pageUsage
import React from 'react';
import { RHCErrorPage } from '@rhc-shared-components/rhc-error-page';
export const App: React.FC = () => {
return (
<>
<RHCErrorPage errorStatus={403} />
<RHCErrorPage errorStatus={404} />
<RHCErrorPage errorStatus={500} />
<RHCErrorPage errorStatus={403} />
<RHCErrorPage errorStatus={403} />
<RHCErrorPage errorStatus={600} />
<RHCErrorPage mainMessage={'Big Message'} subMessage={'Small Message'} />
</>
);
};
