Live Search with React and the WordPress API (P5D39) – Live Coding with Jesse

  • Post comments:1 Comment



Project 5 Day 39: Today we will work on adding a search feature to our React project using the WordPress REST API.

See a professional front-end developer at work. Unscripted. Mistakes included.

Next.js 5: https://zeit.co/blog/next5

Project Repo: https://github.com/fus-marcom/franciscan-react

React: https://facebook.github.io/react/

Gitter: https://gitter.im/LiveCodingwithJesseFreeCodeCamp/

Twitter: https://twitter.com/JesseRWeigel
Youtube: https://www.youtube.com/c/JesseWeigel29
Instagram: https://www.instagram.com/jesse.weigel/

Code Editor: Visual Studio Code
VS Code Theme: Seti
Terminal: https://www.iterm2.com/
Project Management: https://trello.com

Learn to code for free and get a developer job: https://www.freecodecamp.com

Read hundreds of articles on programming: https://medium.freecodecamp.com

And subscribe for new videos on technology every day: https://youtube.com/subscription_center?add_user=freecodecamp

source

This Post Has One Comment

  1. johnselekta

    Hi and thanks for this. I cannot see how you're sending auth headers to WC for the search? I am getting a 401. in axios I use env variables but I'm struggling to find any reference/naming in your code. If you're API is open, how do I send auth headers?

    I know how to do it in axios, but am relatively new to react, just trying to get my head around this way. Thankks in advance.

Leave a Reply