Technology :
- ReactJS
Todo :
- When user chooses a number I need to change just the background style.
- The style is only maintained if this.state.currentPage === number, otherwise it does not show any style although I require the styles changing the background.
Tried Case :
onClick={this.handleClick} style={this.state.currentPage === number ?
styles.paginationButtons : [styles.paginationButtons,
{backgroundColor:'blue'}]}>