Skip to content

Commit 7580322

Browse files
committed
updates
1 parent 1604c1f commit 7580322

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

src/components/Home.js

+28
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,34 @@ const Home = () => {
3232
</p>
3333
<button className="action-button">More Info</button>
3434
</div>
35+
<div className="container">
36+
<h3>ReactJS </h3>
37+
<p>React. js is an open-source JavaScript library, crafted with precision by Facebook, that aims to simplify the intricate process of building interactive user interfaces. Imagine a user interface built with React as a collection of components, each responsible for outputting a small, reusable piece of HTML code.
38+
</p>
39+
<p>A key advantage of React is that it only rerenders those parts of the page that have changed, avoiding unnecessary rerendering of unchanged DOM elements.</p>
40+
<h4>React Hooks</h4>
41+
<p>Hooks allow function components to have access to state and other React features. Because of this, class components are generally no longer needed.
42+
43+
</p>
44+
<ul>
45+
<li>Hooks can only be called inside React function components.
46+
47+
</li>
48+
<li>Hooks can only be called at the top level of a component.
49+
50+
</li>
51+
<li>Hooks cannot be conditional
52+
53+
</li>
54+
55+
</ul>
56+
57+
<button className="action-button">More Info</button>
58+
<h3>Props</h3>
59+
<p>Props are arguments passed into React components.
60+
61+
Props are passed to components via HTML attributes.</p>
62+
</div>
3563
</div>
3664
);
3765
}

0 commit comments

Comments
 (0)