Skip to content

Commit

Permalink
Day 2 cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
nikolov1618 committed Sep 25, 2018
1 parent f255c02 commit 764daac
Show file tree
Hide file tree
Showing 15 changed files with 3 additions and 331 deletions.
1 change: 1 addition & 0 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
<!--
Notice the div with id='root' below.
The whole ReactJS application would be put in it.
Check the ../src/index.js file for more info.
-->
<div id="root"></div>
</body>
Expand Down
4 changes: 2 additions & 2 deletions src/exercise_1/index.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
// Tasks:
// 1. Add a heading tag(<h1>Accedia Workshops - ReactJS</h1>) to the top of the page.
// 2. Add conditional logic(<span>{ this.conditionalMethod() ? 'YAY, you won!' : 'NAY, you lost!' }</span>) in the render method.
// 2. Add conditional logic(<span>{ #SOME_CONDITIONAL_METHOD# ? 'YAY, you won!' : 'NAY, you lost!' }</span>) in the render method.

import React, { Component } from 'react';

class Exercise_1 extends Component {
// A class level method that returns a random boolean value with rougly 50-50 chance
// A class level method that returns a random boolean value with rougly 50-50 chance.
conditionalMethod() {
return Math.random() >= 0.5;
}
Expand Down
74 changes: 0 additions & 74 deletions src/exercise_5/App.js

This file was deleted.

8 changes: 0 additions & 8 deletions src/exercise_5/Todo.js

This file was deleted.

20 changes: 0 additions & 20 deletions src/exercise_5/index.js

This file was deleted.

21 changes: 0 additions & 21 deletions src/exercise_5/store.js

This file was deleted.

3 changes: 0 additions & 3 deletions src/exercise_6/actionsCreators.js

This file was deleted.

9 changes: 0 additions & 9 deletions src/exercise_6/common/Header.js

This file was deleted.

8 changes: 0 additions & 8 deletions src/exercise_6/common/Todo.js

This file was deleted.

33 changes: 0 additions & 33 deletions src/exercise_6/index.js

This file was deleted.

45 changes: 0 additions & 45 deletions src/exercise_6/pages/Home.js

This file was deleted.

48 changes: 0 additions & 48 deletions src/exercise_6/pages/TodoCreate.js

This file was deleted.

38 changes: 0 additions & 38 deletions src/exercise_6/pages/TodoDetails.js

This file was deleted.

20 changes: 0 additions & 20 deletions src/exercise_6/store.js

This file was deleted.

2 changes: 0 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,3 @@ import CurrentExercise from './exercise_1';

// Remember the div with id='root' from ../public/index.html? We use it below.
ReactDOM.render(<CurrentExercise />, document.getElementById('root'));

// EXERCISES 5 & 6 - TO BE CHECKED

0 comments on commit 764daac

Please sign in to comment.