Skip to content

Commit

Permalink
feat (frameworks/react): new hook section
Browse files Browse the repository at this point in the history
  • Loading branch information
santanche committed Aug 26, 2024
1 parent 5f85906 commit db9e85b
Show file tree
Hide file tree
Showing 18 changed files with 17,368 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frameworks/react/5-hierarchy/src/MedicationList.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import MedicationItem from './MedicationItem.jsx'

export default function MedicationList() {
return <div>
return <>
<MedicationItem name="Velocirest"
description="Description of dosage and frequency of use of Velocirest."
image="/src/assets/medication1.svg" />
Expand All @@ -11,5 +11,5 @@ export default function MedicationList() {
<MedicationItem name="Tyrannotonic"
description="Description of dosage and frequency of use of Tyrannotonic."
image="/src/assets/medication3.svg" />
</div>
</>
}
12 changes: 12 additions & 0 deletions frameworks/react/6-hook-state/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>React App</title>
</head>
<body>
<div id="root"></div>
<script src="src/main.jsx" type="module"></script>
</body>
</html>
Loading

0 comments on commit db9e85b

Please sign in to comment.