Skip to content

Commit

Permalink
Update components.html
Browse files Browse the repository at this point in the history
  • Loading branch information
MalikWhitten67 committed Sep 30, 2023
1 parent a5e160f commit 15769da
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/views/docs/basics/components.html
Original file line number Diff line number Diff line change
Expand Up @@ -59,22 +59,22 @@ <h2 class="text-4xl font-bold mt-8">Component Structure</h2>
</p>

<h1 class="text-2xl font-bold mt-8">References</h1>
<markdown>

* **render()**: The render method is responsible for generating HTML content for the component. You can customize this method to define your component's visual representation.

- **render()**: The render method is responsible for generating HTML content for the component. You can customize this method to define your component's visual representation.

- **componentDidMount()**: This method is called explicitly when the component is mounted. It's not handled directly by Vader; you need to manually call it when needed in your component. You can use it to perform actions after the component has been added to the DOM.

</markdown>

<markdown class="text-3xl font-bold">
<span class="text-3xl font-bold">
## Component Lifecycles
</markdown>
</span>
<p>
Vader.js provides several lifecycle methods that you can override to handle different events throughout the component's lifecycle:
</p>
<markdown class="text-lg font-bold badge badge-ghost te">
### componentUpdated(prev_states, prev_props, snapshot)
<markdown class="text-lg font-bold badge text-sky-500 badge-ghost te">
### componentUpdated()
</markdown>
<markdown class="list-inside flex flex-col gap-4 mt-3">
- The <span class="badge badge-ghost">componentUpdated</span> method is an overrideable method that is called by Vader when the component's content has changed.
Expand Down Expand Up @@ -116,4 +116,4 @@ <h1 class="text-2xl font-bold mt-8">References</h1>

</p>
</div>
</body>
</body>

0 comments on commit 15769da

Please sign in to comment.