Build a React App with Ruby on Rails (Part 2: React Router)

preview_player
Показать описание

== Overview ==
In the last video, we created a simple hello world with react and ruby on rails. In this video, we are going to extend that app by adding react router and creating routes for our app.
Рекомендации по теме
Комментарии
Автор

Thanks for the straight forward introduction to using React with Ruby on Rails!

mskleftwich
Автор

Another awesome video. Can't wait for the next one :)

mickeyeng
Автор

The second video, and already my favorite teacher now! Thank you!

DemmersSito
Автор

so good!! pls!! I want the next one!!

alvinyen
Автор

Great video! Only I suggest to use "get" instead of "match" due to security reasons. "Get" works perfect too ☺

AlbertoPatM
Автор

Great tutorials. Thanks. Please show to us, how to add navbar and its link to the Home, About and Contact Pages. As well, if possible, please add create CRUD operation in this App.

LiaAdzumi
Автор

awesome video man, please continue!!!

ratatui
Автор

Nice intro but I'm bit confused. Can you tell me why aren't you using 'react-rails' gem? What is a difference between add component in app/assets/javascripts vs app/javascript?

mz
Автор

Thanks for posting about this. I'm running a rails 7 with esbuild to try to get a react front end going. When I implement this, I get an issue with the index.js file continuously remounting (like an infinite useEffect loop, except there is no useEffect in this case). Would this setup work with the latest version (Using routes and route instead of switch) of react router dom? Thank you!

ebk
Автор

I don't get meaning the match *path, It is like setup for single page app right?

transytaia
Автор

0:35 What's the difference between ./bin/webpack-dev-server and rails s --binding:<ipaddress> ?

emilyhuang
Автор

But how does React interact with the database through Rails?

mikopiko
Автор

I've done this exact tutorial three times and I'm always unable to get the routing to work. The URLs change but the page never loads the appropriate container. I'm getting no errors unfortunately just a blank page for each of the links I've set up in my navigation component. Any help is greatly appreciated! Thank you!

HemantKumar
Автор

Hi! there is any way to set the route matcher *path in the React app instead of the Rails app? I want the Rails app to be an API-only app and it's not intended to render views.

McAko
Автор

Thank you for the video Zyne. Do you see any downside on using React inside Rails? Are you using in any project in production?

renatolz
Автор

Thanks for the tuto, It's really useful. Someone else has problems with the browser back/forward buttons? I just get an empty screen.

duende
Автор

Hello, i don't understand the interest to create a react app into a rails app... What the interest ? i'm use RoR and i am interested to react...

Luffy
Автор

I don’t understand why you are configuring the routes in react not rails

泰勒-ir
join shbcf.ru