How to customize packages under Medplum React Comp...
# support
v
Hi Medplum Team! I wanted to create a new PatientSummary component reusing some of the code under this location: https://github.com/medplum/medplum/tree/main/packages/react/src/PatientSummary . Should I create a new package folder under /packages/react/src/ or somewhere else?
r
Hi @veronique_82422 , thanks for offering to contribute your new component back to the project! Typicallly, we try to avoid having too many components that do the similar thing. Therefore, if you think your component is similar to the existing
PatientSummary
, you might want consider how you can generalize it so that it can be handled by a single component
But this depends on what changes you were thnking of making
v
Thank you @rahul1. Could you please clarify what you mean by "generalize it"?
r
"generalize it" meaning add more props that allow customization of the behavior, without forking the code
181 Views