Creating a component in ReactJS involves defining a new function or class which will generate an HTML-like syntax referred to as JSX. This JSX syntax can be inserted into other components or used for a root level render.
React components can be either functional components or class components.
1. Functional Component:
```
import React from ‘react’;
function Welcome(props) { return
1. Class Component:
\`\`\`jsx
import React, { Component } from ‘react’;
class Welcome extends Component { render() { return
export default Welcome;
\`\`\`
In both examples, the created `Welcome` component can be used elsewhere in your application like this:
\`\`\`jsx
import Welcome from ‘./Welcome’;
\`\`\`
It is also good practice to keep components in separate files and always start component names with a capital letter.