This package is made for the people who don't feel like creating their own error page. It contains all HTML codes, 100, 200, 300, 400 and 500.
It is super fast to use and easy for people who need a super simple yet beautiful html code page.
Install the package
npm install html-code-pages
Create your first error page
import { NotFound } from "html-code-pages";
import React from "react";
// EXAMPLE PAGE //
function App() {
return (
<>
<NotFound />
</>
);
}
export default App;
With custom error description
import { OK } from "html-code-pages/lib/200"; // Imports only 200 errors
import React from "react";
// EXAMPLE PAGE //
function App() {
return (
<>
<OK customText="This is a 404 error!" />
</>
);
}
export default App;