DEV Community


Discussion on: Writing fully testable React components using the 'Helper Pattern'

siddiqus profile image
Sabbir Siddiqui Author

Absolutely! The main idea of the article was to pass the component's object using "this" through to the constructor of the helper and having it manage the component's state. What you mentioned makes sense, and it's something I have also applied in practice. Also definitely helps when you have similar components across your application. Thanks for your feedback!