Closed KsenijaGogic closed 5 years ago
Merging #347 into master will increase coverage by
0.04%
. The diff coverage is100%
.
@@ Coverage Diff @@
## master #347 +/- ##
==========================================
+ Coverage 82.22% 82.27% +0.04%
==========================================
Files 59 59
Lines 1221 1224 +3
Branches 218 219 +1
==========================================
+ Hits 1004 1007 +3
Misses 165 165
Partials 52 52
Closing this PR as a new release of React Router will solve this problem specifically.
Problem
Trying to figure out an elegant way to:
<Button />
component to leverage styling (perfect use case:react-router
's<Link />
)<Button />
mostly untouchedThe motivation for this is mainly to avoid improper HTML practices with nesting a
<Button />
inside a<Link />
.Solution
Current approach leverages existing dynamic element creation to add a 3rd option (
a
,button
,props.customElement
). ~Adds an additionalcustomElementProps
prop to allow users to specify props they may need (to
,q
, etc.).~customElementProps
removed in order to favourelementAttributes
.