From 6712bd21f7903a8a57423f856327867d30e49b5e Mon Sep 17 00:00:00 2001 From: Muhammad Usama <musama2@unl.edu> Date: Thu, 5 Sep 2024 16:36:54 -0500 Subject: [PATCH] Task3 --- minimal-app/src/__snapshots__/app.test.js.snap | 8 +++++++- minimal-app/src/app.js | 4 +++- minimal-app/src/features/myApp/myApp.js | 7 +++++++ 3 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 minimal-app/src/features/myApp/myApp.js diff --git a/minimal-app/src/__snapshots__/app.test.js.snap b/minimal-app/src/__snapshots__/app.test.js.snap index 6c4af2a..d7852e2 100644 --- a/minimal-app/src/__snapshots__/app.test.js.snap +++ b/minimal-app/src/__snapshots__/app.test.js.snap @@ -1,3 +1,9 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`the app has one labeled button that displays the value from the store 1`] = `<div />`; +exports[`the app has one labeled button that displays the value from the store 1`] = ` +<div> + <main> + [placeholder text] + </main> +</div> +`; diff --git a/minimal-app/src/app.js b/minimal-app/src/app.js index 6cdd6f5..b66a537 100644 --- a/minimal-app/src/app.js +++ b/minimal-app/src/app.js @@ -1,11 +1,13 @@ import { Routes, Route } from 'react-router-dom'; // import { Counter } from './features/counter/counter.js'; +import { MyApp } from './features/myApp/myApp'; export function App() { const page = <> - {/* <Counter label={'Taps'} /> */} + { <MyApp/> + /* <Counter label={'Taps'} /> */} </>; return ( <Routes> diff --git a/minimal-app/src/features/myApp/myApp.js b/minimal-app/src/features/myApp/myApp.js new file mode 100644 index 0000000..92e0837 --- /dev/null +++ b/minimal-app/src/features/myApp/myApp.js @@ -0,0 +1,7 @@ +export function MyApp() { + return ( + <main> + [placeholder text] + </main> + ); +} -- GitLab