React

React for Angular Developers

Introduction

React is a Javascript library unlike Angular - which is a framework.

Components

React contains only two types of components: Functional and Class based .

Functional components are stateless and have no constructor

function App() {

return (

Hello, World

);

}

export default App;

Class-based components are stateful i.e they keep track of changing data

class HasTheParameter extends React.component{

render(){

return (

{this.props.theParameter}

)

}

}

export default HasTheParameter;

Last Updated : 31 Oct 2020