Похожие чаты

I would really suggest you to reduce using multiple bang,

its hard to read

isLoading === 'loading'
? null
: data.record.note.length <= 0
? null
: <RenderUrComponenet />

// or

isLoading === 'loading'
? <LoadingSpinner />
: data.record.note.length <= 0
? <EmptyState />
: <RenderUrComponenet />

Fragment
<React.Fragment>...</React.Fragment>
// or just use
<> ...</>

1 ответов

14 просмотров

the main thing is not to start writing something like that

Похожие вопросы

Карта сайта