Categories
Mastering Development

How to pass array as result from one functional component to another in React

I want to pass data stored in const mappedData from FetchDataComponent.js to ReactSelectComponent.js. Is there any way of doing this with functional components? With code under i get Error: Objects are not valid as a React child FetchDataComponent.js import React,{useState, useEffect} from “react”; import axios from “axios”; import _ from “lodash”; const FetchDataComponent = () […]