diff options
| author | Kamal Wickramanayake <kamal@inbox.lk> | 2026-06-27 22:14:56 +0530 |
|---|---|---|
| committer | Kamal Wickramanayake <kamal@inbox.lk> | 2026-06-27 22:14:56 +0530 |
| commit | 5ed431db2c4a45b35fe1ab9e6d8a69ca62bbbeb5 (patch) | |
| tree | 3720d8b9e2eaa215383e69e21e2b8f27d31d23d0 /react/04-components/src/App.jsx | |
| parent | 29b898049d5322a5833b95d55f1d1a9e7dd94eaf (diff) | |
Added react/04-components sample project
Diffstat (limited to 'react/04-components/src/App.jsx')
| -rw-r--r-- | react/04-components/src/App.jsx | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/react/04-components/src/App.jsx b/react/04-components/src/App.jsx new file mode 100644 index 0000000..5459c80 --- /dev/null +++ b/react/04-components/src/App.jsx @@ -0,0 +1,20 @@ +import Navbar from "./components/Navbar"; +import MyOtherComponent from "./components/MyOtherComponent"; + +function App() { + return ( + <> + <Navbar /> + + <MyOtherComponent title="Component 1 title"> + This is component 1 description. + </MyOtherComponent> + + <MyOtherComponent title="Component 2 title"> + This is component 2 description. + </MyOtherComponent> + </> + ) +} + +export default App |
