diff --git a/front/doc/component.md b/front/doc/component.md new file mode 100644 index 00000000..f2a19801 --- /dev/null +++ b/front/doc/component.md @@ -0,0 +1,116 @@ +# `Component` + +-------------------------------------------------------------------------------- + +The Component class is a custom HTML element that extends the HTMLElement class. +It provides a foundation for creating reusable and customizable web components. + +This class is an abstract class, and must not be instantiated. + +-------------------------------------------------------------------------------- + +# Methods to be redefined + +## render + +Returns the HTML content to be rendered inside the component. + +```javascript +render() { + const message = 'Hello World!' + return ` +
GET
/auth/signup
GET
/auth/signin
GET
/auth/reset-password-email