When writing React application we need components to present the application elements. However, often times creating a complete component class might be an overkill for a simple representation, for example a simple button. We can use Stateless Functional Component to simplify how we create a dumb/stateless component Stateless component can only render props, this should…
When we get into React we might see some event handling with
this.handleClick = this.handleClick.bind(this); In fact, that was an example from one of React’s documentation. This ‘binding’ is called Constructor Bind, we can use another way to handle an event, by using Class properties.