React Notes - emZubair/react-recepie GitHub Wiki

React Development Notes:

UI elements should extend (inherit) from the Component and define render() method which should return a react Component wrapped inside JSX.

State of the component is initialized and managed by the component itself, it is like init method of python, while props are like params passed to the function, they should never be modified in the child component.

CORS (Cross-Origin Resource Sharing)

By default, a website restricts resource access from the other domains, for this in Django an extension django-cors-headers is used that adds CORS headers to the response.