How to pass JSON as a prop?

I have a component that gets 2 props, one is another component and the second is a JSON file:
interface HeaderProps {
title: ReactElement<typeof Title>;
data: any;

The prop ‘title’ is very specific and shows that only the comp…

Pass button value from react to express

I’m trying to create a react app that calls an api in an express server and displays the data. There are buttons that a user could press that have a value which would get passed into the api and the proper results would be shown.
My proble…