Momentum logo
Team 10 Classroom

🦊 React + AJAX & APIs 🦊

Posted on Dec 6th, 2021

Today’s Topics

  • How AJAX and APIs work
  • How to make AJAX calls from React using fetch() or Axios.

🎯 Project

React Trivia. Your goal today is to get a list of trivia categories showing on the page.

🔖 Resources

AJAX in React

How to Think About Building Things in React

Conditional Rendering and Handling Events

🦉 Code

🐻 REST APIs and Django 🐻

Posted on Dec 6th, 2021

Today’s Topics

  • Show Habit Tracker
  • HTTP requests and responses
  • REST APIs
  • Django REST Framework

🎯 Project

Complete the official Django REST Framework tutorial. You may find it easier going if you follow the guide by Will Vincent.

Will Vincent uses the exact same code and steps, but he takes more time to explain what is going on and uses the django admin interface instead of the shell to create objects in the database. Will’s tutorial stops short of the last step, step 6, in the official tutorial. But if you finish step 5 and want to keep going, you can continue with the official tutorial.

You should complete the tutorial by tomorrow morning.

Some tips about the DRF Tutorial to keep in mind:

  • Do not copy & paste the code. You’ll get a lot more out of it if you type it out yourself.
  • Don’t use the Momentum Django Project Template for the tutorial. The custom user model in that template conflicts with what the tutorial has you do.

📖 Read | 📺 Watch | 🎧 Listen

ICYMI

These links were posted last week, but you may not have gotten to them.

🔖 Resources

🦉 Code & Notes

🦊 Front-end: React Component Props & State 🦊

Posted on Dec 2nd, 2021

Today’s Topics

  • What did you learn from the tutorial(s) you did? First impressions of React?
  • Build a small React app together in class
  • Components and JSX
  • Handling data in React with props and state

🎯 Do

Today, you’ll start on your first React app without a tutorial. This is due on Monday.

React Freeshelf

📖 Read | 📺 Watch | 🎧 Listen

🔖 Resources

👨‍💻 Code Examples

🐻 Queries & Using the Shell 🐻

Posted on Dec 2nd, 2021

Today’s Topics

  • Interacting with models in the shell
  • Queries and more queries

🎯 Project: Still Working on Habit Tracker

Habit Tracker is due on Monday. You can do this! 💪 What do you need to know in order to finish it?

📖 Read | 📺 Watch | 🎧 Listen

This section is material to prep for the topic we will begin next week: building APIs.

🔖 Resources

Constraints

Aggregate & Annotate

🦉 Code & Notes

🦊 Get to Know React 🦊

Posted on Nov 30th, 2021

⚛ Today’s topics

  • Exercism review
  • Intro to React
    • How does React work?
    • What does React code look like?

🛠️ Setup

Make sure you have the following set up in your local environment (docs listed below in Resources):

  • Node & npm
  • create-react-app
  • ESLint for VS Code
  • React developer tools for Chrome

📖 Read | 📺 Watch | 🎧 Listen

🎯 Do

Beginner’s Guide to React Tutorial. This will show you the most modern way to build React apps. This project will be in Git, but you will use a repository you make.

If you finish this and want to keep going, try one of these other tutorials:

🔖 Resources