React useState Hook Explained: State, Syntax, Updates & Examples (2026)

Image
  React useState Hook: Complete Guide to State in React When you build a React application, you often need to store information that can change while the user is using the page. For example: A counter can increase or decrease. A button can change from Follow to Following. A form field can store the text entered by the user. A menu can open and close. A product quantity can increase or decrease. React uses state to handle this type of changing information. The useState Hook is one of the first React Hooks that every React developer should learn. It allows a functional component to create and manage its own state.

create menu card in html code table format



 how to create  table in html

Program

<!doctype.html>

<html>

<head>

<title>Menu card</title>

</head>

<table border="1">

<tr>

<th>Sr.No</th>

<th>Menu</th>

<th>Price</th>

</tr>

<tr>

<td>1</td>

<td align="center"><u>ice creams</u>

<ol>

<li>juice </li>

<li>Milk</li>

<li>cold coffee</li>

<li>Faluda</li>

<li>Water</li>

</ul>

</ol>

</td>

<td>

<ol>

<li>70</li>

<li>50</li>

<li>80</li>

<li>60</li>

<li>100</li>

</ol>

</td>

</tr>

<tr>

<td>2</td>

<td align="center"><u>Drinks</u>

<ol>

<li>chocolete </li>

<li>kulfi</li>

<li>strawberry</li>

<li>Mango</li>

<li>Butterscotch</li></ul></ol>

</ol>

</td>

<td>

<ol>

<li>50</li>

<li>20</li>

<li>80</li>

<li>60</li>

<li>80</li>

</ol>

</td>

</tr>

<tr>

<td>3</td>

<td align="center"> <u>Break-fast</u>

<ol>

<li>poha</li>

<li>Upma</li>

<li>dosa</li>

<li>Rava</li>

<li>Thalipeeth</li>

</ol>

</td>

<td>

<ol>

<li>40</li>

<li>50</li>

<li>70</li>

<li>30</li>

<li>80</li>

</ol>

</td>

</tr>

</table>

</html>


OUTPUT

create menu card in html code

Related Post 

Comments

Popular posts from this blog

HTML Tag

CSS Text Color Explained with Syntax and HTML Examples

HTML Input Type Submit Syntax and Example