News for hackers. Stuff that matters.
Re:Lessons learned as a React contractor by dragonorta on Friday January 06, 2017 @09:23AM (#13336351)
I've done this in a project recently when I was trying out different third party autocomplete components.

I had my own autocomplete component that I would use wherever I needed an autocomplete, and that component would render the third party autocomplete and supply it with the props it required. When I needed to switch out which third party component I was using, I only had to change code in one place, instead of changing it everywhere I was using autocomplete.

There are no comments on this comment yet.