Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted over 3 years ago

Spa using Reacjs and React Router

react, react-router, bem
Felix Criollo•575
@FelixCriollo
A solution to the Space tourism multi-page website challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


The practice

In first place, this is my first time usign react outside the tutorials. Use props and the hooks useState and useEffect. Too use react router for build urls and so separare the content the user see in the page, use Link, BrowserRouter, Routes, Route and useLocation.

For the style of the page use vanilla css, i guess. The think is what i use the vanilla sintax of css

Also i work with fetch and with promises

Finally use create-react-app for have the basic config, try to made my own config but not works :d

Questions to improve

  • How i can improve the order of the files on this project or in general?
  • How i can add styles of better way?
  • How i can improve the performance of the page?
Code
Loading...

Please log in to post a comment

Log in with GitHub

Community feedback

No feedback yet. Be the first to give feedback on Felix Criollo's solution.

Join our Discord community

Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!

Join our Discord
Frontend Mentor logo

Stay up to datewith new challenges, featured solutions, selected articles, and our latest news

Frontend Mentor

  • Unlock Pro
  • Contact us
  • FAQs
  • Become a partner

Explore

  • Learning paths
  • Challenges
  • Solutions
  • Articles

Community

  • Discord
  • Guidelines

For companies

  • Hire developers
  • Train developers
© Frontend Mentor 2019 - 2025
  • Terms
  • Cookie Policy
  • Privacy Policy
  • License