I am wondering if anyone can show me how to connect my react app create with create-react-app to connect to a local mysql database. Is there any library out there that does this or do I have to start completely from scratch?

You're going to have to build a server with API routes to query the data from your database.

0 users liked answer #0dislike answer #00
Mike Hughes III profile pic
Mike Hughes III

You need some sort of backend server script build with language such as php or nodejs that will create api endpoints to be consumed by your react scripts

0 users liked answer #1dislike answer #10
Sodimu Segun Michael profile pic
Sodimu Segun Michael

Copyright © 2022 QueryThreads

All content on Query Threads is licensed under the Creative Commons Attribution-ShareAlike 3.0 license (CC BY-SA 3.0).