Readdy Write  
0,00 €
Your View Money
Views: Count
Self 20% 0
Your Content 60% 0

Users by Links 0
u1*(Content+Views) 10% 0
Follow-Follower 0
s2*(Income) 5% 0

Count
Followers 0
Login Register as User

#Rect Error Failed to compile Expected an assignment or function call and instead saw an expression no-unused-expressions

13.02.2021 (πŸ‘214)

Rect Error

 

Failed to compile

./src/components/Game_TicTocToe.js
  Line 44:5:  Expected an assignment or function call and instead saw an expression 
no-unused-expressions

Search for the
keywords to learn more about each error.

This error occurred during the build time and cannot be dismissed.

 

 

Error in React bei Zeilenumbruch in return

Error:

  renderSquare(i) {

    return 

    <Square 

      value={this.state.squares[i]}

      onClick={() => this.handleClick(i)}

    />;

  }

 

 

LΓΆsung:

Mit einer runden Klammer die Return zusammenfassen

OK:

  renderSquare(i) {

    return(

      <Square 

      value={this.state.squares[i]}      

      onClick={() => this.handleClick(i)}

      />

    );