In this video, I have created a functional component in React and integrated that with our Posts service.
There are two main types of components in React. Class Components and Functional Components. Class components are ES6 classes and Functional Components are functions. The only constraint for a functional component is to accept props as an argument and return valid JSX.
We can create a functional component to React by writing a JavaScript function. These functions may or may not receive data as parameters.
Github:
React Playlist:
Microservice posts service creation: