GoogleChromeLabs/quicklink

An additional `div` markup is wrapped around each router component by `withQuicklink` HOC

Open

#193 建立於 2020年7月2日

在 GitHub 查看
 (1 留言) (1 反應) (0 負責人)JavaScript (10,861 star) (431 fork)batch import
help wanted

描述

Describe the bug As you can see in the HOC, we have an additional div markup wrapping around the Component (probably it would be a route component) so inserting that div markup could break the app styling since the app styling does not expect another div to be inserted by withQuicklink HOC. Capture

To Reproduce If we use nest CSS selector without considering that div, we might break the styling.

Expected behavior I hope we could avoid adding any wrapping markup around a route component if possible. At least, I hope we manage to avoid impacting the rest of the app as well as the styling in any case.

Version:

  • Quicklink 2.0

cc @addyosmani @demianrenzulli

貢獻者指南

An additional `div` markup is wrapped around each router component by `withQuicklink` HOC · GoogleChromeLabs/quicklink#193 | Good First Issue