Chapter 6. Integrating third-party libraries with React

This chapter covers

  • Sending form data in JSON format to a remote API
  • Building some new kinds of components, including a location-picker, type-ahead, and a display map
  • Integrating your React app with Mapbox to search locations and display maps

In chapter 5, we started looking at forms and how they work in React. You added event handlers to update component state in the CreatePost component. In this chapter, you’ll build on that previous work and work on adding the ability to create new posts. You’ll start interacting more with the JSON API that provided posts to render in the last chapter.

Often, you’ll build React applications in a context that involves non-React libraries that also ...

Get React in Action now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.