rogotsky / kmu-filters

0 stars 0 forks source link

Keep HTML component clean as possible #6

Open VadSiam opened 5 years ago

VadSiam commented 5 years ago

https://github.com/rogotsky/kmu-filters/blob/87cdc835753a2d8cd6520c66e3e8555c7e95ad81/src/components/Posts/Post.js#L19

Please keep HTML component clean as possible (it makes the code easy to read): const documentTagsPresent = !!data.document_tags.length; const tagsString = data.document_tags.join(', '); and then {documentTagsPresent &&

Tags: {tagsString}

}

the same in strings 22 and 23

rogotsky commented 5 years ago

@VadSiam Fixed