minimise the code since I am using the same code only the content in p tags changes and component AccordionHeader header changes
try to use just one static and pass the text that will be on the p tag as a parameter, so you don’t have a lot of functions there static accordion(ballInfo, content) { if (ballInfo.isRetrieving) { return ( <LoadingIndicator key=”foulLoading” /> ); } else if (ballInfo.error) { return ( <span className=”right-align negative”>Unavailable</span> ); } else … Read more