Skip to content

Commit dead02a

Browse files
authored
Add React link example to index.template.html q
Added React-compatible link example for navigation.
1 parent d334059 commit dead02a

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

pages/html/index.template.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,9 @@ <h2>a</h2>
122122
you can create link
123123
<a href="javascript:location.href=location.href.split('?')[0]">off</a>
124124

125+
for react:
126+
<a href={window.location.href.split("?")[0]} className="gcp-css">off</a>
127+
125128
another version
126129
<a href="javascript:location.search=''">off</a>
127130
but that will result in link

0 commit comments

Comments
 (0)