This commit is contained in:
2021-05-17 01:13:37 +08:00
parent a8a4fdef9b
commit 0c3a0cee38
5 changed files with 15 additions and 66 deletions
+5 -1
View File
@@ -15,4 +15,8 @@ npm run start
npm i -g serve
6、启动本地服务
serve -s build
serve -s build
7、dangerouslySetInnerHTML
8、ReactDom.findDOMNode
9、refs
+1 -1
View File
@@ -1,6 +1,6 @@
import React from 'react';
import ReactDom from 'react-dom';
import HeaderComponent from './components/header/index'
import HeaderComponent from './components/header/index';
class App extends React.Component{
componentDidMount(){
// ref属性