React — Fetch
If we have this two tables builded in Rails as data base to be manipulated and the data JASON looks like:
Picture with id: 36 belongs_to user_id: 40 that has user_name: “Juan” and also it has a description and image_url.
The state is an empty array, with fetch we bring the data from the Rails backend to the React frontend. With the key picture can display the data and style it.
scapsa0116 - Repositories
Student at FlatIron School Full Stack Software Developer. World traveler. Block or Report Ruby MIT License Updated May…