I’m working on getting familiar with React. Whats the difference between the two approaches to declaring the onCellClick function (whether it be called onCellClick or concatenateClickedString) class App extends React.Component { constructor(){ this.onCellClick = this.onCellClick.bind(this); } render(){ <div onClick={this.onCellClick} } onCellClick(){} } class App extends React.Component { constructor(){ } render(){ <div onClick={onCellClick} } onCellClick(){} } … Continue reading "Difference between two places of declaring functions in React"
The post Difference between two places of declaring functions in React appeared first on 100% Private Proxies - Fast, Anonymous, Quality, Unlimited USA Private Proxy!.