We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
You have a lot of repeated inputs in this component
week5-bereket-minju/src/components/CategoryFilter.jsx
Lines 79 to 89 in c89c27d
Since each one maps to an entry in the categories object
Lines 4 to 6 in c89c27d
You could loop over that to generate the inputs, something like this:
Object.keys(categories).map((key) => ( <label htmlFor={key}> {key} <input checked={category === key} type="radio" name="categories" id={key} value={key} onChange={(event) => setCategory(event.target.value)} /> </label> ))
The text was updated successfully, but these errors were encountered:
add object key inside return Relates #15
72d3fdf
remove repetitive data and change it as loop inside {}
Sorry, something went wrong.
No branches or pull requests
You have a lot of repeated inputs in this component
week5-bereket-minju/src/components/CategoryFilter.jsx
Lines 79 to 89 in c89c27d
Since each one maps to an entry in the categories object
week5-bereket-minju/src/components/CategoryFilter.jsx
Lines 4 to 6 in c89c27d
You could loop over that to generate the inputs, something like this:
The text was updated successfully, but these errors were encountered: