Time Tracking Dashboard

Solution retrospective
I am proud of logic building part as well as my new learning about typescript, vite working with scss it's great.
What challenges did you encounter, and how did you overcome them?Face significant challenges in use state understanding but time investing in undestanding them worth.
What specific areas of your project would you like help with?I have doubt regarding the setting up css for project as we have #root div inside index.html then we set up other div styling and it mix up styles and layout. So if someone suggest me great resource son how to style react components and index.html so that in starting we have good layout.
Please log in to post a comment
Log in with GitHubCommunity feedback
- P@huyphan2210
Hi, @taranjeetsingh9,
I checked out your solution and wanted to share some feedback:
You can organize your SCSS files similarly to how you structure your components. In React, it's common practice for each component to have its own
.tsx
and.scss
files, grouped within a folder named after the component. For example:└── components └── Button ├── Button.tsx └── Button.scss └── Header ├── Header.tsx └── Header.scss
You can then import the component’s SCSS file directly into its
.tsx
file, similar to how you importmain.css
inmain.tsx
.Keep in mind that component styles aren’t scoped by default in React. This means that class and ID selectors can affect the entire page. To avoid unintended styling conflicts, be intentional with how you name classes and IDs.
Hope this helps!
Marked as helpful
Join 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