Frontend Best Practices - department-of-veterans-affairs/caseflow GitHub Wiki

Frontend (React) Best Practices

There is no single "correct" way to do React development. Over the years, the community has adopted a series of best practices. We've seen the rise and fall of HOCs (Higher Order Components), the introduction of multiple versions of a context API, the rise of hooks, and more. The overall trajectory, however, is towards giving developers more tools to build more powerful, performant applications while minimizing boilerplate and effort.

The Caseflow code base itself shows a swath of this history. Most components were written to the best practices of their day, and still should be fully functional. There is no need to immediately go through and update all the old components, but one should adopt current best practices as much as possible when building new components or when refactoring/rewriting old ones.

Contents

Other Links

⚠️ **GitHub.com Fallback** ⚠️