Design comparison
Solution retrospective
Hey Everyone this was the first time attempting a challenge using React JS, It was really confusing at first but I somehow managed to work my way around It. Please provide your kind feedback and also if there are any other way of deploying a React project ?
Community feedback
- @Fernando0654Posted almost 3 years ago
You can use this commands to deploy your React App when using webpack and babel. It's super easy and it helps to improve the performance
"scripts": { "dev": "webpack serve --open --config webpack.config.js --mode development", "build": "webpack --mode production --config webpack.config.js", "deploy": "gh-pages -d dist", }
-
With
dev
, it opens you a server similar to run when you're developing -
With
build
, web webpack creates for you a folder with the name, usually, 'dist' -
And finally, with
deploy
, I use a package of npm called gh-pages that publish the project website live for you in Github
This is the way I do this. Hope it helps you ♣︎
Marked as helpful1@soumya495Posted almost 3 years ago@Fernando0654 Thank you, but I actually deployed this one using github pages, I wanted to know if there's any other way to deploy React websites.
0 -
- @skyv26Posted almost 3 years ago
To avoid accessibility issues:
- wrap everything in your body in <main> OR give role="" to the direct children of your <body> ... Click here to read more here
Good Luck
Marked as helpful0
Please log in to post a comment
Log in with GitHubJoin 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