Mera-Gangapersaud / Creative-Collab

A creative collaborative writing app
MIT License
0 stars 6 forks source link

Refactor code #34

Open vldmrkl opened 5 years ago

vldmrkl commented 5 years ago

Going through the code, I found some code mistakes that must be fixed. For example, here is the chunk of code from board.js file. Each class property in this file should be renamed to className because we are using JSX in React. I'll investigate other parts of code and refactor it if needed.

<div class="row">
          <div class="col-xs-2 col-sm-2 col-md-2 col-lg-2" id="players-container">
            <h4>Player 1</h4>
            <h4>Player 2</h4>
          </div>
          <div class="col-xs-10 col-sm-10 col-md-10 col-lg-10">
            <StoryBoard story={this.props.G.storySoFar} />
          </div>
</div>