Awesome React
Browse videos
Playlists
Conferences
Speakers
About
Use defaultProps for mocking
Details
Sharing a trick I learned from @ryanflorence for mocking dependencies using defaultProps.
Final codesandbox:
https://codesandbox.io/s/v8j6r807o5
Phone call recording:
https://www.youtube.com/watch?v=vVlcq3e1ooI