Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
React Redux Starter Code
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Muhammad Usama
React Redux Starter Code
Commits
6712bd21
Commit
6712bd21
authored
10 months ago
by
Muhammad Usama
Browse files
Options
Downloads
Patches
Plain Diff
Task3
parent
b667c2d0
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
minimal-app/src/__snapshots__/app.test.js.snap
+7
-1
7 additions, 1 deletion
minimal-app/src/__snapshots__/app.test.js.snap
minimal-app/src/app.js
+3
-1
3 additions, 1 deletion
minimal-app/src/app.js
minimal-app/src/features/myApp/myApp.js
+7
-0
7 additions, 0 deletions
minimal-app/src/features/myApp/myApp.js
with
17 additions
and
2 deletions
minimal-app/src/__snapshots__/app.test.js.snap
+
7
−
1
View file @
6712bd21
// Jest Snapshot v1, https://goo.gl/fbAQLP
// 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>
`;
This diff is collapsed.
Click to expand it.
minimal-app/src/app.js
+
3
−
1
View file @
6712bd21
import
{
Routes
,
Route
}
from
'
react-router-dom
'
;
import
{
Routes
,
Route
}
from
'
react-router-dom
'
;
// import { Counter } from './features/counter/counter.js';
// import { Counter } from './features/counter/counter.js';
import
{
MyApp
}
from
'
./features/myApp/myApp
'
;
export
function
App
()
{
export
function
App
()
{
const
page
=
const
page
=
<>
<>
{
/* <Counter label={'Taps'} /> */
}
{
<
MyApp
/>
/* <Counter label={'Taps'} /> */
}
<
/>
;
<
/>
;
return
(
return
(
<
Routes
>
<
Routes
>
...
...
This diff is collapsed.
Click to expand it.
minimal-app/src/features/myApp/myApp.js
0 → 100644
+
7
−
0
View file @
6712bd21
export
function
MyApp
()
{
return
(
<
main
>
[
placeholder
text
]
<
/main
>
);
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment