第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定

react16.4 版本 運(yùn)行該demo 不成功

現(xiàn)在用最新 16.4 的react的版本寫這個(gè)demo ?跑不起來(lái)啊 頁(yè)面上什么都沒(méi)有

正在回答

5 回答


【蜘蛛俠TG@abin789】-11801
【蜘蛛俠TG@abin789】-11802
【蜘蛛俠TG@abin789】-11803
【蜘蛛俠TG@abin789】-11804
【蜘蛛俠TG@abin789】-11805
【蜘蛛俠TG@abin789】-11806
【蜘蛛俠TG@abin789】-11807
【蜘蛛俠TG@abin789】-11808
【蜘蛛俠TG@abin789】-11809
【蜘蛛俠TG@abin789】-11810
【蜘蛛俠TG@abin789】-11811
【蜘蛛俠TG@abin789】-11812
【蜘蛛俠TG@abin789】-11813
【蜘蛛俠TG@abin789】-11814
【蜘蛛俠TG@abin789】-11815
【蜘蛛俠TG@abin789】-11816
【蜘蛛俠TG@abin789】-11817
【蜘蛛俠TG@abin789】-11818
【蜘蛛俠TG@abin789】-11819
【蜘蛛俠TG@abin789】-11820
【蜘蛛俠TG@abin789】-11821
【蜘蛛俠TG@abin789】-11822
【蜘蛛俠TG@abin789】-11823
【蜘蛛俠TG@abin789】-11824
【蜘蛛俠TG@abin789】-11825
【蜘蛛俠TG@abin789】-11826
【蜘蛛俠TG@abin789】-11827
【蜘蛛俠TG@abin789】-11828
【蜘蛛俠TG@abin789】-11829
【蜘蛛俠TG@abin789】-11830
【蜘蛛俠TG@abin789】-11831
【蜘蛛俠TG@abin789】-11832
【蜘蛛俠TG@abin789】-11833
【蜘蛛俠TG@abin789】-11834
【蜘蛛俠TG@abin789】-11835
【蜘蛛俠TG@abin789】-11836
【蜘蛛俠TG@abin789】-11837
【蜘蛛俠TG@abin789】-11838
【蜘蛛俠TG@abin789】-11839
【蜘蛛俠TG@abin789】-11840
【蜘蛛俠TG@abin789】-11841
【蜘蛛俠TG@abin789】-11842
【蜘蛛俠TG@abin789】-11843
【蜘蛛俠TG@abin789】-11844
【蜘蛛俠TG@abin789】-11845
【蜘蛛俠TG@abin789】-11846
【蜘蛛俠TG@abin789】-11847
【蜘蛛俠TG@abin789】-11848
【蜘蛛俠TG@abin789】-11849
【蜘蛛俠TG@abin789】-11850
【蜘蛛俠TG@abin789】-11851
【蜘蛛俠TG@abin789】-11852
【蜘蛛俠TG@abin789】-11853
【蜘蛛俠TG@abin789】-11854
【蜘蛛俠TG@abin789】-11855
【蜘蛛俠TG@abin789】-11856
【蜘蛛俠TG@abin789】-11857
【蜘蛛俠TG@abin789】-11858
【蜘蛛俠TG@abin789】-11859
【蜘蛛俠TG@abin789】-11860
【蜘蛛俠TG@abin789】-11861
【蜘蛛俠TG@abin789】-11862
【蜘蛛俠TG@abin789】-11863
【蜘蛛俠TG@abin789】-11864
【蜘蛛俠TG@abin789】-11865
【蜘蛛俠TG@abin789】-11866
【蜘蛛俠TG@abin789】-11867
【蜘蛛俠TG@abin789】-11868
【蜘蛛俠TG@abin789】-11869
【蜘蛛俠TG@abin789】-11870
【蜘蛛俠TG@abin789】-11871
【蜘蛛俠TG@abin789】-11872
【蜘蛛俠TG@abin789】-11873
【蜘蛛俠TG@abin789】-11874
【蜘蛛俠TG@abin789】-11875
【蜘蛛俠TG@abin789】-11876
【蜘蛛俠TG@abin789】-11877
【蜘蛛俠TG@abin789】-11878
【蜘蛛俠TG@abin789】-11879
【蜘蛛俠TG@abin789】-11880
【蜘蛛俠TG@abin789】-11881
【蜘蛛俠TG@abin789】-11882
【蜘蛛俠TG@abin789】-11883
【蜘蛛俠TG@abin789】-11884
【蜘蛛俠TG@abin789】-11885
【蜘蛛俠TG@abin789】-11886
【蜘蛛俠TG@abin789】-11887
【蜘蛛俠TG@abin789】-11888
【蜘蛛俠TG@abin789】-11889
【蜘蛛俠TG@abin789】-11890
【蜘蛛俠TG@abin789】-11891
【蜘蛛俠TG@abin789】-11892
【蜘蛛俠TG@abin789】-11893
【蜘蛛俠TG@abin789】-11894
【蜘蛛俠TG@abin789】-11895
【蜘蛛俠TG@abin789】-11896
【蜘蛛俠TG@abin789】-11897
【蜘蛛俠TG@abin789】-11898
【蜘蛛俠TG@abin789】-11899
【蜘蛛俠TG@abin789】-11900
【蜘蛛俠TG@abin789】-11901
【蜘蛛俠TG@abin789】-11902
【蜘蛛俠TG@abin789】-11903
【蜘蛛俠TG@abin789】-11904
【蜘蛛俠TG@abin789】-11905
【蜘蛛俠TG@abin789】-11906
【蜘蛛俠TG@abin789】-11907
【蜘蛛俠TG@abin789】-11908
【蜘蛛俠TG@abin789】-11909
【蜘蛛俠TG@abin789】-11910
【蜘蛛俠TG@abin789】-11911
【蜘蛛俠TG@abin789】-11912
【蜘蛛俠TG@abin789】-11913
【蜘蛛俠TG@abin789】-11914
【蜘蛛俠TG@abin789】-11915
【蜘蛛俠TG@abin789】-11916
【蜘蛛俠TG@abin789】-11917
【蜘蛛俠TG@abin789】-11918
【蜘蛛俠TG@abin789】-11919
【蜘蛛俠TG@abin789】-11920
【蜘蛛俠TG@abin789】-11921
【蜘蛛俠TG@abin789】-11922
【蜘蛛俠TG@abin789】-11923
【蜘蛛俠TG@abin789】-11924
【蜘蛛俠TG@abin789】-11925
【蜘蛛俠TG@abin789】-11926
【蜘蛛俠TG@abin789】-11927
【蜘蛛俠TG@abin789】-11928
【蜘蛛俠TG@abin789】-11929
【蜘蛛俠TG@abin789】-11930
【蜘蛛俠TG@abin789】-11931
【蜘蛛俠TG@abin789】-11932
【蜘蛛俠TG@abin789】-11933
【蜘蛛俠TG@abin789】-11934
【蜘蛛俠TG@abin789】-11935
【蜘蛛俠TG@abin789】-11936
【蜘蛛俠TG@abin789】-11937
【蜘蛛俠TG@abin789】-11938
【蜘蛛俠TG@abin789】-11939
【蜘蛛俠TG@abin789】-11940
【蜘蛛俠TG@abin789】-11941
【蜘蛛俠TG@abin789】-11942
【蜘蛛俠TG@abin789】-11943
【蜘蛛俠TG@abin789】-11944
【蜘蛛俠TG@abin789】-11945
【蜘蛛俠TG@abin789】-11946
【蜘蛛俠TG@abin789】-11947
【蜘蛛俠TG@abin789】-11948
【蜘蛛俠TG@abin789】-11949
【蜘蛛俠TG@abin789】-11950
【蜘蛛俠TG@abin789】-11951
【蜘蛛俠TG@abin789】-11952
【蜘蛛俠TG@abin789】-11953
【蜘蛛俠TG@abin789】-11954
【蜘蛛俠TG@abin789】-11955
【蜘蛛俠TG@abin789】-11956
【蜘蛛俠TG@abin789】-11957
【蜘蛛俠TG@abin789】-11958
【蜘蛛俠TG@abin789】-11959
【蜘蛛俠TG@abin789】-11960
【蜘蛛俠TG@abin789】-11961
【蜘蛛俠TG@abin789】-11962
【蜘蛛俠TG@abin789】-11963
【蜘蛛俠TG@abin789】-11964
【蜘蛛俠TG@abin789】-11965
【蜘蛛俠TG@abin789】-11966
【蜘蛛俠TG@abin789】-11967
【蜘蛛俠TG@abin789】-11968
【蜘蛛俠TG@abin789】-11969
【蜘蛛俠TG@abin789】-11970
【蜘蛛俠TG@abin789】-11971
【蜘蛛俠TG@abin789】-11972
【蜘蛛俠TG@abin789】-11973
【蜘蛛俠TG@abin789】-11974
【蜘蛛俠TG@abin789】-11975
【蜘蛛俠TG@abin789】-11976
【蜘蛛俠TG@abin789】-11977
【蜘蛛俠TG@abin789】-11978
【蜘蛛俠TG@abin789】-11979
【蜘蛛俠TG@abin789】-11980
【蜘蛛俠TG@abin789】-11981
【蜘蛛俠TG@abin789】-11982
【蜘蛛俠TG@abin789】-11983
【蜘蛛俠TG@abin789】-11984
【蜘蛛俠TG@abin789】-11985
【蜘蛛俠TG@abin789】-11986
【蜘蛛俠TG@abin789】-11987
【蜘蛛俠TG@abin789】-11988
【蜘蛛俠TG@abin789】-11989
【蜘蛛俠TG@abin789】-11990
【蜘蛛俠TG@abin789】-11991
【蜘蛛俠TG@abin789】-11992
【蜘蛛俠TG@abin789】-11993
【蜘蛛俠TG@abin789】-11994
【蜘蛛俠TG@abin789】-11995
【蜘蛛俠TG@abin789】-11996
【蜘蛛俠TG@abin789】-11997
【蜘蛛俠TG@abin789】-11998
【蜘蛛俠TG@abin789】-11999
【蜘蛛俠TG@abin789】-12000

0 回復(fù) 有任何疑惑可以回復(fù)我~

新版不使用jsxtransformer了,如果在script tag中使用了jsx的語(yǔ)法,那就需要一個(gè)preprocessor將其轉(zhuǎn)化成標(biāo)準(zhǔn)javascript才能夠執(zhí)行。一個(gè)比較好的替換的library就是babel,可以參考下面的例子

同時(shí)還要注意新版的語(yǔ)法中要把component改成class,如樓上給出的例子

<head>

<meta charset="UTF-8">

<title>Document</title>

<script src="https://cdnjs.cloudflare.com/ajax/libs/babel-standalone/6.26.0/babel.js"></script>

<script crossorigin src="https://unpkg.com/react@16/umd/react.development.js"></script>

<script crossorigin src="https://unpkg.com/react-dom@16/umd/react-dom.development.js"></script>

</head>

<body>

<div id="container"></div>

<script type="text/babel">

class TestClickComponent extends React.Component {

render() {

return (

<div>

<button>text</button>

</div>

);

}

}

ReactDOM.render(<TestClickComponent></TestClickComponent>, document.getElementById('container'));

</script>

</body>

</html>




0 回復(fù) 有任何疑惑可以回復(fù)我~

class TestInput extends React.Component {

? ?constructor(props) {

? ? ? ?super(props);

? ? ? ?this.state = { inputContent: '' };

? ? ? ?this.handleChange = this.handleChange.bind(this);

? ?}

? ?handleChange(e){

? ? ? ?this.setState({inputContent:e.target.value});

? ?}

? ?render() {

? ? ? ?return (

? ? ? ? ? ?<div>

? ? ? ? ? ? ? ?<input type="text" value={this.state.inputContent} onChange={this.handleChange}/><span>{this.state.inputContent}</span>

? ? ? ? ? ?</div>

? ? ? ?);

? ?}

}


0 回復(fù) 有任何疑惑可以回復(fù)我~

constructor(props) {

? ?super(props);

? ?this.handleClick = this.handleClick.bind(this);

}


0 回復(fù) 有任何疑惑可以回復(fù)我~

你可能有哪個(gè)地方寫錯(cuò)了

0 回復(fù) 有任何疑惑可以回復(fù)我~

舉報(bào)

0/150
提交
取消
React入門
  • 參與學(xué)習(xí)       122096    人
  • 解答問(wèn)題       126    個(gè)

顛覆式前端UI開發(fā)框架React入門視頻教程,趕緊學(xué)起來(lái)

進(jìn)入課程

react16.4 版本 運(yùn)行該demo 不成功

我要回答 關(guān)注問(wèn)題
微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)