@ahmedmelfay
Submitted
Does anyone know how I could host my react project? Like should I use npm run build before pushing to my repo or what?
Looking to hire developers?
@p-alex
@ahmedmelfay
Submitted
Does anyone know how I could host my react project? Like should I use npm run build before pushing to my repo or what?
@p-alex
Posted
You can use Vercel to host your react apps. It's really easy and it's free. You just have to log in with your Github account and then choose the repo you want to deploy.
Hello👋!
It was one of the most enjoyable challenges I have done so far. When I saw that challenge requires a change theme I decided to add another functionality which is extra "custom" theme where the user can edit freely colors in theme modal. Many times, when I finished a certain function, I had an idea with another one, and I had a lot of fun doing it. Honestly, It took me more time to made this custom modal than the calculator itself - which itself was a good javascript challenge as well. You can use both the keyboard and the mouse to enter data into the calculator. List of things I learned or used creating this project:
matchMedia()
method. It returns a new MediaQueryList object
that can then be used to determine if the document matches the media query string. In this case prefers-color-scheme. Read more(1). How to detect user prefered theme in JS(2).toLocaleString()
method to return a string with a language-sensitive representation of this number. In short it convert 3500 to 3,500 if in U.S. Read more.object literals
instead of if statement
in several cases. Shortly, we have an object where the keys are the conditions and the values are the responses. Then we can use the square bracket notation to select the correct value of the object from the argument passed in. This looks clean and I will definitely continue to use this. Read More.You can find more about the things I used in the project in the README on github. I just wanted to point out new things here.
Special thanks to @brasspetals for tossing an idea with the focus trap which she used in her project. No specific questions here but any additional feedback will be appreciated! Let me know if you spot any bugs. I know they're hiding somewhere! 😅
Thanks! 😁
@p-alex
Posted
Well done @tediko! The color configuration feature was a great idea. Amazing project!
@Barabazs
Submitted
Constructive feedback is always appreciated.
@p-alex
Posted
Hey @Barabazs! Everything looks perfect to me, but you have some easy to solve report issues like the name attributes of the inputs being empty.
Great Job!!
Marked as helpful