HolismHolding / Issues

1 stars 0 forks source link

Move towareds the ultimate clean code for React #232

Open Nefcanto opened 1 month ago

Nefcanto commented 1 month ago

An ultimate example of a Row.jsx could be:

const row = entity => <>
    <Image />
    <TitleSubtitle
        subtitle={entity.slug}
        title={<ValueWithTitle
            title={entity.summary}
            value={entity.title}
        />}
    />
    <Thumbnails />
    <Category />
    <Price />
    <Boolean featured />
    <Boolean isActive />
    <Availability considerAvailableAsFalse />
</>

Imports and the default export should be removed. No Property should be added to the end of imports. They should all be contextualized. And the ultimate usage of contexts should be made. The ultimate level of conventions should be achieved.