Maybe using a HOC and compacting a bit the conditions made in the components?
Maybe using a HOC and compacting a bit the conditions made in the components?