-1
Guys I’m doing Omni Stack 9 from Rocket Seat, where Diego teaches to develop a copy of Airbnb but for Devs. I’m doing the Web part and I can do even the quiet login page, is redirecting to Dashboard all right! But when I run the route of Dashboard or New (new spot) is not returning me anything! In class he puts a H1 just to show the page and appears the title straight!
I put H1 there in Return, but it’s not returning it! No html I put it back. And neither does this function I created
I created the page first so the user can login I made a file of routes so I could have navigation through the system
From the login page I redirect to the dashboards page (which is the first print) The login page is all working perfectly and redirecting normal! But the other two I created Dashboards and New not one of the two returns me HTML when I put something!
NOTE: in the login page I call the route "dashboards" in the plural. And in the first print is in the singular, I already correct putting in the plural and still not solved
Good evening, try returning the value inside quotes. ex:
'<h1>Hello World</h1>'
;– Kayky Bruno
Check where you are calling the page. In case Console.log is returning something? Enter the code written. Image is bad to parse/copy/understand. .
– Rebeca Nonato
@Kaykybruno put the quotes and was not and the console only accuses me the variable I created and is not being used!
– Victor Souza
@Rebecanonato I am calling for the login page! I will edit the question and put the prints and explain my intention
– Victor Souza
@Victorsouza Edith your question, replacing the image with the code itself.
– Rafael Tavares