Introduction to Using React with Rails
Read about how we'll use React with Rails in this chapter.
We'll cover the following...
React has emerged as probably the most popular of the current JavaScript frameworks. It has a huge user base and a large ecosystem. Structurally, React is the polar opposite of Stimulus. It’s more complex, and as you’ll see, its design reflects fundamentally different assumptions about how to manage state and logic in a JavaScript program.
For our purposes in this course, we will only use a fraction of React’s capabilities; our focus here will be on using React to support interactivity on a single page while working with our Rails application. We will not focus on using React for a single-page application (SPA). An SPA is a perfectly reasonable thing to write, but it is more complex and less likely to ...