javascript - React link to static html page? - Stack Overflow

i have a React + Redux app, i want to link to a privacy.html page which is a static html file in the ro

i have a React + Redux app, i want to link to a privacy.html page which is a static html file in the root of the project along side with index.html which is the react app.

The problem is that the link to /privacy.html is caught by the <Route path='*' ponent={NotFoundView} />

Is there a work around for this?

i have a React + Redux app, i want to link to a privacy.html page which is a static html file in the root of the project along side with index.html which is the react app.

The problem is that the link to /privacy.html is caught by the <Route path='*' ponent={NotFoundView} />

Is there a work around for this?

Share Improve this question asked Dec 29, 2015 at 9:52 IsrahackIsrahack 4792 gold badges7 silver badges15 bronze badges
Add a ment  | 

1 Answer 1

Reset to default 8

Don't use Link for pages outside of your app. Simply use a standard <a> tag.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744272134a4566151.html

相关推荐

  • javascript - React link to static html page? - Stack Overflow

    i have a React + Redux app, i want to link to a privacy.html page which is a static html file in the ro

    7天前
    20

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信