Skip to content

Commit

Permalink
🚩 Fragment
Browse files Browse the repository at this point in the history
Fragment
  • Loading branch information
SaishJ committed Sep 5, 2022
1 parent bbbbe65 commit 034c6f8
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -203,3 +203,5 @@ export default ClassClick;
### [Styling and CSS Basic](https://github.com/SaishJ/React-JS-Beginner-to-Advanced/commit/ac16748caa1423ec10c5f1066c54470e512a6544)

### [Form Handling](https://github.com/SaishJ/React-JS-Beginner-to-Advanced/commit/4b36f24bf95bfa76b7f8c7fb8599754d4b916ff5)

### [Component Lifecycle Methods](https://github.com/SaishJ/React-JS-Beginner-to-Advanced/commit/bbbbe658941b4920312e960cf7c208125d48ce01)
4 changes: 3 additions & 1 deletion src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,13 @@ import StyleSheet from "./components/StyleSheet";
import Inline from "./components/Inline";
import Form from "./components/Form";
import LifecycleA from "./components/LifecycleA";
import FragmentsDemo from "./components/FragmentsDemo";

function App() {
return (
<div className="App">
<LifecycleA />
<FragmentsDemo />
{/* <LifecycleA /> */}
{/* <Form /> */}
{/* <StyleSheet primary={true} /> */}
{/* <Inline /> */}
Expand Down
15 changes: 15 additions & 0 deletions src/components/FragmentsDemo.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import React from "react";

function FragmentsDemo() {
return (
<>
<h1>Fragments Demo</h1>
<p>This is a Fragment Demo.</p>
</>
);
}

export default FragmentsDemo;

/* Fragments:- Groups list of children elements without adding extra nodes to the DoM.
<React.Fragment> or <> */

0 comments on commit 034c6f8

Please sign in to comment.