What is the purpose of render method in ReactJS?

Every React Component must have a render method mandatorily. It returns a single React element which is basically the representation of the native DOM component. In case, more than one HTML element needs to be rendered, then they must be grouped together inside one enclosing tag like div tag. This function has to be kept pure i.e., it must return the same result each time it is invoked.