![](/img/trans.png)
[英]I want to change variant or background of the clicked button (onClick) only in reactjs. How can i achieve it?
[英]Reactjs. I can not run the demo locally
我下載了該庫: https : //github.com/jquense/react-widgets
我打開了文件:docs / index.html
控制台顯示錯誤:
GET文件:/// F:/Extjs/breeze/react-widgets-2.6.1/docs/docs.js net :: ERR_FILE_NOT_FOUND
我更改了這一行:
之前:
<script src="docs.js" type="text/javascript"></script>
后:
<script src="components/docs.jsx" type="text/javascript"></script>
控制台顯示錯誤:
未捕獲到的SyntaxError:意外令牌{docs.jsx:3
我該如何跑步?
我做了以下事情:
git clone https://github.com/jquense/react-widgets
cd react-widgets
npm install
gulp dev-docs
然后在我的瀏覽器中http:// localhost:8080 / docs / index.htm#/
對你有用嗎?
歡呼奧利弗
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.