From b7a6d4eeb49480d54ea164ca688d1ca1471d8561 Mon Sep 17 00:00:00 2001 From: Malik Whitten <65188863+MalikWhitten67@users.noreply.github.com> Date: Thu, 28 Sep 2023 08:12:59 -0500 Subject: [PATCH] Update components.html --- src/views/docs/basics/components.html | 22 ++-------------------- 1 file changed, 2 insertions(+), 20 deletions(-) diff --git a/src/views/docs/basics/components.html b/src/views/docs/basics/components.html index 29b86aa..531690e 100644 --- a/src/views/docs/basics/components.html +++ b/src/views/docs/basics/components.html @@ -29,27 +29,9 @@

Component Structure

is the base class for all components in Vader. Which is defined by ES6 classes. -
-
import Vader, {include} from  'vaderjs'
-
class  myApp  extends  Vader.Component{  
- -
   constructor(){  
-
      super() 
-
   } 
-
   render(){  
-
      return this.html( ̀  
-
           <div>  
-
           <h1>Hello World</h1>  
-
           </div>  
-
      	̀ ) 
-
   } 
-
 } 
-
+

+

Only the render method is required for a component to be valid. the other methods are optional per your projects needs.