DEV Community

loading...

Discussion on: React Clean Code Tricks Everyone Should Know...

Collapse
sudarshansb143 profile image
sudarshan Author

Thanks for feedback.

I agree with you on the dynamic nature of the roles.

But, here I focused on the small app which mainly contains two/three types of users

i.e. normal and admin level

Hence, i designed the code in that way !

anyways i will remember your feedback and will take care of it next time :)