@silenthackz

Functional setState ❤️❤️

Lets say initial state of your component is 👇👇👇this.state = { on: true}Now on click may be I would want to change the state of my component. In React probably the way you change the state of a component is by passing an object to update the current state. This probably will depend on the current state. To manage the state, React provides a special method called setState(). You use it like this:this.setState({on: !on})I am...

@silenthackz

Top 10 reasons why you should learn React right now

Despite competition from Vue.js and Angular, React is proving developers’ go-to choice for building exciting web applications. Whether you’re a developer looking to upskill, or a business leader looking to improve your digital offering, there’s a tonne of reasons to learn React.Here are our top 10 reasons why you should choose React.1. React is declarativeReact uses declarative instead of imperative syntax. It’s a simpler way...