Skip to content

Commit

Permalink
1st step: Design Game component.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mrcel97 committed Aug 21, 2018
1 parent a0b984d commit fbc8696
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import './index.css';

class Game extends React.Component {
render() { // Render html code in js file (BAD PRACTICE).//
return (
<div className="game"> {/* React comment example */}
<div className="game-board"> {/* Space destined to host an specific component */}
Game Board
</div>
<div className="game-info"> {/* Space destined to log Game actions */}
</div>
</div>
);
}
}

0 comments on commit fbc8696

Please sign in to comment.