UNPKG
@hackplan/polaris
Version:
latest (4.1.9)
4.1.9
4.1.8
4.1.7
4.1.6
4.1.5
4.1.4
4.1.3
4.1.2
4.1.1
4.1.0
4.0.6
4.0.5
4.0.4
4.0.3
4.0.2
4.0.1
4.0.0
Shopify’s product component library
github.com/Shopify/polaris-react
Shopify/polaris-react
@hackplan/polaris
/
esnext
/
components
/
AppProvider
/
utilities
/
Link
/
Link.js
12 lines
(11 loc)
•
249 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
export
default
class
Link
{
constructor
(
linkComponent
) {
this
.
linkComponent
= linkComponent; }
setLinkComponent
(
link
) {
this
.
linkComponent
= link; }
getLinkComponent
(
) {
return
this
.
linkComponent
; } }