Error before updating scaffolding from new db schema try creating
👍When building a dynamic web app, I always like to ‘stub’ out the components first using dummy data.This involves creating the user interface and populating it using static data that I define at the top of the component. While you’re in App.js, go ahead and delete everything in the render function, as well as the last two import statements at the top of the file.Open up and add one line of HTML to insert a Bootstrap styled HTML button component, immediately below the ‘Learn React’ link: Save your changes and navigate to the running web app in your browser.If you see a blue button, similar to the screenshot below, then you’ve installed and imported Bootstrap successfully and we can move on!Once you’re done customizing your base, click into it.You can start adding in the movie data once you have added these columns.Begin by deleting the static HTML card components from the render function, keeping the outer .card-deck div, like so: Play around with the array data for a while so you can see how the data is populating our Movie Card components. Add more objects to the movie Data array to see more cards being added to our web app.The final piece of the React and Airtable web app puzzle — Plugging an Airtable database into our quite static front end!
Oh, if you’re using Atom, be sure to check out the Best Atom Plugins for Front End Developers. We could do this manually, but that would take too long.Then, add a Bootstrap container, row, Each card component is filled with static content for now, so we can see what our app will look like once it’s being populated with dynamic data from Airtable. Once it’s refreshed, you should see something that looks like this: What we’re doing here is instantiating a new constant of type array.Inside this array are three objects, each with a name, year, description, and image_url key/value pairs.This is where the fun begins…We’ve checked off step one: stubbing out our component with dummy data.If you remember our three steps from before, step two was converting the static HTML components into a React component.
Sign up for a new Airtable account if you haven’t already.