skip to Main Content

How to Set a Attributes based on Condition – Javascript

I am trying to set a attributes based on certain condition. attributes do certain action with there name <Button onClick={() => updateSegmentDetailsHandler(data.title, data.description) } isLoadingIndicator={btnLoading} disabled={!data.title || !data.description || btnLoading} btnColor={'primary'} data-bs-dismiss='modal' // how to set this attributes based on…

VIEW QUESTION
Back To Top
Search