Functional components are smaller, more performant, and more modern than legacy class-based ones. Let's convert the ResourceContainer class to a functional component to improve the bundle size + performance of this library
Expected Behavior:
No user-facing changes will result from this change.
The ResourceContainer class is gone and replaced with a functional component of the same name.
All stories + supporting documentation are updated
@jocelynn1uphealth Looks like this one is already a class-based component. We'll still need to revisit this one after the TypeScript issue is finished.
Background:
Functional components are smaller, more performant, and more modern than legacy class-based ones. Let's convert the
ResourceContainer
class to a functional component to improve the bundle size + performance of this libraryExpected Behavior:
ResourceContainer
class is gone and replaced with a functional component of the same name.