Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
Formation-React-Pitoune
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
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
Pitoune
Formation-React-Pitoune
Commits
cd037ee6
Commit
cd037ee6
authored
Oct 9, 2021
by
Viarezo
Browse files
Options
Downloads
Patches
Plain Diff
first bare version
parent
c43347fa
No related branches found
No related tags found
No related merge requests found
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
src/App.js
+0
-10
0 additions, 10 deletions
src/App.js
src/Counter.js
+0
-23
0 additions, 23 deletions
src/Counter.js
src/Grid.js
+0
-9
0 additions, 9 deletions
src/Grid.js
src/grid.css
+0
-4
0 additions, 4 deletions
src/grid.css
with
0 additions
and
46 deletions
src/App.js
+
0
−
10
View file @
cd037ee6
import
'
./App.css
'
;
import
{
Counter
}
from
'
./Counter
'
;
import
{
default
as
Grid
}
from
'
./Grid.js
'
;
const
App
=
()
=>
{
const
compteurs
=
[]
for
(
let
pas
=
0
;
pas
<
5
;
pas
++
)
{
compteurs
.
push
(
<
Counter
title
=
{
"
Le compteur n°
"
+
String
(
pas
)}
/>
)
}
return
(
<
div
>
<
div
className
=
"
App
"
>
...
...
@@ -14,9 +7,6 @@ const App = () => {
<
h1
>
Bienvenue
sur
notre
super
site
!<
/h1
>
<
/div
>
<
/div
>
<
Grid
>
{
compteurs
}
<
/Grid
>
<
/div
>
);
}
...
...
This diff is collapsed.
Click to expand it.
src/Counter.js
deleted
100644 → 0
+
0
−
23
View file @
c43347fa
import
{
useState
}
from
"
react
"
;
const
Counter
=
(
props
)
=>
{
const
[
count
,
setCount
]
=
useState
(
0
);
return
(
<
div
class
=
"
card
"
style
=
{{
width
:
"
auto
"
,
margin
:
'
2em
'
}}
>
<
div
class
=
"
card-header
"
>
{
props
.
title
}
<
/div
>
<
button
type
=
"
button
"
class
=
"
btn btn-primary
"
onClick
=
{()
=>
setCount
(
count
+
1
)}
style
=
{{
margin
:
"
1em
"
}}
>
Ce
bouton
incrémente
<
/button
>
<
p
style
=
{{
margin
:
"
1em auto
"
}}
>
Là
genre
ça
vaut
{
count
}
<
/p
>
<
/div
>
)
};
export
{
Counter
};
\ No newline at end of file
This diff is collapsed.
Click to expand it.
src/Grid.js
deleted
100644 → 0
+
0
−
9
View file @
c43347fa
import
'
./grid.css
'
;
const
Grid
=
(
props
)
=>
(
<
div
class
=
"
grid
"
>
{
props
.
children
}
<
/div
>
)
export
default
Grid
\ No newline at end of file
This diff is collapsed.
Click to expand it.
src/grid.css
deleted
100644 → 0
+
0
−
4
View file @
c43347fa
.grid
{
display
:
grid
;
grid-template-columns
:
repeat
(
3
,
1fr
);
}
\ No newline at end of file
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