Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch Fix, Home Fix, Video Fix #26

Open
AlexFigas opened this issue Feb 21, 2022 · 2 comments
Open

Switch Fix, Home Fix, Video Fix #26

AlexFigas opened this issue Feb 21, 2022 · 2 comments

Comments

@AlexFigas
Copy link

Replace Switch tags with Routes.

React replaced component with 'element'. Replace the Route tag with this:
<Route path='/' exact element={<Home/>} />

Replace his video tag with the new version:
<video src={videos} autoPlay loop muted />
And on the top of the page import the video you want (move the video and image folder from public to src):
import videos from '../videos/welcome.mp4'

@fabiantorrestech
Copy link

Thank you for this! However, currently trying to follow along with this tutorial and having trouble now -- i made these changes but seems it still won't show up on my end ): any other suggestions? I'm on React Router V6

@Walker0710
Copy link

Try to replace componet with element in the App.js and also the above step given by @AlexFigas

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants