@amrkhaled222
Submitted
@MaeWolff
@amrkhaled222
Submitted
@MaeWolff
Posted
Hi! Congrats on your challenge :)
I noticed a few things you could improve:
app/country/[countryName]/page.js
, you wrote porps
instead of props
.useCountries
would fetch all countries.Tanstack Query
(documentation) for your state management with your data fetching.prettier
if you're on vscode to make your code a bit more readableNext step is to start using TypeScript :)
Marked as helpful
@gamelayo
Submitted
Any feedback on how to improve is highly welcome
@MaeWolff
Posted
Hi ! Congrats on your challenge :)
I noticed a few things you could improve:
Country.jsx
and CountryList.jsx
files, during your try/catch, you should pass your setLoading(false)
in the finally
(you can read an article here) because this code will be executed at the end while the catch executes when you have an error.footer
/header
and nav
)@dostonnabotov
Submitted
Hey, there! 👋
🤖 This is my solution for the Pricing component with toggle challenge using React and TypeScript.
<body>
element, but rather in the <div id="root">
in React. It took me some time to figure that out❓ Questions:
useState
hook to pass down the value to the Toggle component along with its function to update its state. Is it a good idea to implement it this way?📈 Updates:
Thanks for reading. Really appreciate any feedback and advice!
@MaeWolff
Posted
Hi Doston :) !
Congrats on your posting
Marked as helpful
@lorenzoaniel
Submitted
Took me awhile as I wanted to try my hand at using NextJS - 13 specifically the experimental app directory and a lightweight state-management using Zustand (I usually use RTK). Also learned how to implement TailwindCss custom theme properly-ish. Moved away from github pages and used Vercel for hosting the live site since Next is SSR, it was quite painless and I might have a contender for AWS Amplify. Anyway I am still learning TailWindCSS but so far it is leagues faster and less of a head ache than styled components so far, haven't had a project with complex animations yet so i can't say for sure.
As per usual please leave me some feedback, as long as there are no profanities you can be as blunt as you want to be, trying to learn industry best practices.
@MaeWolff
Posted
Hi, congrats on your project post :) !
I have noted a few points that you could improve:
prettier
if you're on vscode to make your code a bit more readableform
tag to wrap the input and the button of your searchbar so that we can use the tab to do our search. So you could also put the input value into a state using the onChange
event and use it in your handleClick
function rather than using getElementsByClassName
.any
type, you can create a related type for ˋuser`Marked as helpful
@MatheusVSN
Submitted
Hello world🤗, this is my solution for the challenge Rest countries API with theme switcher
What did you find difficult while building the project?
Wich areas of your code are you unsure of?
Do you have any questions about best practices?
@MaeWolff
Posted
Hi Matheus!
I've identified a few things to improve:
CallCountriesAPI
should be named with the prefix use
(so useCountries
for example) to respect the convention rules and allow the linter to check if you are using the hook according to the rules of the react hooksconst [state, setState] = useState<YOUR_TYPE_HERE>(defaultValue)
any
, maybe use unknown
or create the real typesCongrats on your post :)
Marked as helpful
@TechieTy-Dev
Submitted
@MaeWolff
Posted
Hi Tyler! Congrats on your post :)
A little feedback that has nothing to do with the code itself. You can install prettier
if you are on vscode, it will allow you to format your code and make it more readable
Marked as helpful
@yigithancolak
Submitted
-It was a challenging project to build, especially making responsive design was took some time but helped me to sharpen my skills.
-I think i should have create more re-usable scss components for repeative structures. And i purposely did not change the font-family and added some differences to my UI.
-If you have any feedback about design and the code, feel free to comment or mail to me.
@MaeWolff
Posted
Hi ! Congrats on posting your challenge :)
You can improve the accessibility of the add ons
step by using the label tag on your card to select the checkbox by clicking anywhere on the card.
You can check this example: https://flowbite.com/docs/forms/checkbox/#advanced-layout