React 6 Tips
React 6 Tips
React 6 Tips
New! Select "Design your profile" in the menu to create a personalized space.
Got it
ARCHIVE
WRITE FOR US
STYLE GUIDE
ABOUT
Responses (8)
Luisgoyburo
What are your thoughts?
Cancel
Respond
Anisuzzaman Babla
Good read. But I didn't understand which 6 libraries you wish to start using earlier.
28
1 reply
Reply
Bryan Martin
Bryan Martin
Ammar Sayed
1 day ago
great article but would you pls write the 6 libraries at the end of articles to be gathered in one place thanx
:)
6
1 reply
Reply
Josue Cedeno
about 23 hours ago
Great article!
2
1 reply
Reply
Gregor
Daniel Burger
32 minutes ago
Szymon Owczarek
Mohammad Faisal
Follow
Feb 1 · 3 min read
Photo by Francisco Gonzalez on Unsplash
1. Testing
For a long time testing was my weakness. I didn’t write tests
for my components and, as expected, often I had to debug
typos.
Adding a very basic test that takes two minutes to write can
save hours in the long run. Here’s a test that checks if
the Title component will render correctly:
it('checks if the title component is in the document', () => {
expect(screen.getByText('Title')).toBeInTheDocument()
})
If you are using create-react-app you already have the testing
setup in place. Just start writing tests as much (and as early) as
possible.
Now it’s much easier for me to navigate through the file system
to find anything.
After some time I learned sass and it was great! But although it
provided some syntactic sugar over vanilla css it was really
hard to style any component. Reusing any style was especially
hard as I often forgot that a particular style was already there.
components.
So, those are the top 6 libraries I wish I started using earlier in
my career. What about you?
Related Libraries:
Programming
JavaScript
React
Web Development
Angular
354 claps
8 responses
WRITTEN BY
Mohammad Faisal
Follow
Passionate about Clean code and SOLID Architecture
Better Programming
Follow
Advice for programmers.
Learn more.
Medium is an open platform where 170 million readers come to find insightful and dynamic thinking.
Here, expert and undiscovered voices alike dive into the heart of any topic and bring new ideas to the
surface. Learn more
About
Help
Legal