Browse Source

Adding some brainstorming

Luiserebii 2 years ago
parent
commit
74e57a3d8f
Signed by: Luiserebii <luis@serebii.io> GPG Key ID: 3B7E2D68E27CBBCF
1 changed files with 10 additions and 1 deletions
  1. 10
    1
      fullstack-react-projects/time_tracking_app/README.md

+ 10
- 1
fullstack-react-projects/time_tracking_app/README.md View File

@@ -20,9 +20,18 @@ class Timer extends React.Component {
20 20
     isButtonStarted: false
21 21
   };
22 22
 
23
+  getButtonValue() {
24
+    return !this.state.isButtonStarted ? 'Start' | 'Stop';
25
+  }
26
+
23 27
   return (
24 28
     <div>
25
-      
29
+      <h1>{this.state.title}</h1>
30
+      <h3>{this.state.description}</h3>
31
+      <span style="font-size: 50px">{this.state.time}</span>
32
+      <input type="button" value="Edit">
33
+      <input type="button" value="Delete">
34
+      <input type="button" value={this.getButtonValue()}/>
26 35
     </div>
27 36
   );
28 37
 

Loading…
Cancel
Save