Twitter | Search | |
Kent C. Dodds Sep 15
Hey, anyone wanna help me out? I want to make a typical and simple counter "component" in every popular framework library both modern and old. React's: Looking for: - jQuery - Backbone - Vue - AngularJS - Angular - Ember - HyperApp - Knockout - etc...
Reply Retweet Like
Kent C. Dodds Sep 15
Replying to @kentcdodds
Ok, so this is what I'm really up to: I want to show how to use dom-testing-library to test components written in any web framework. I'm having a surprisingly hard time with a few though and I could use your help. If it's missing, I want it.
Reply Retweet Like
Kent C. Dodds Sep 15
Replying to @kentcdodds
Currently included: - backbone (sorta) - from-html - hyperapp - jquery - react - svelte I've tried vue, angular, and ember and I'm having trouble figuring those out. Help appreciated :)
Reply Retweet Like
Kent C. Dodds
Every test of this component should look basically identical. That's the point of dom-testing-library. No implementation details! So yes, help making more examples is appreciated!
Reply Retweet Like More
Lisa Snider Sep 16
Replying to @kentcdodds
Unit tests needed for (1) decrementing case and (2) negative nums. Think those should be 2 sep tests. my 2 cents
Reply Retweet Like
Kent C. Dodds Sep 16
Replying to @lissni
This counter only goes up 😃
Reply Retweet Like
Lisa Snider Sep 16
interesting choice . most counter apps I've seen & incl official counter app example has both increment *and* decrement functionality:
Reply Retweet Like
Kent C. Dodds Sep 16
My propose is simplicity with state
Reply Retweet Like