react

createElement能夠綁定事件麼?javascript

react的歷史。 https://www.jianshu.com/p/ad533d71f79ecss

#### react入門html

http://www.javashuo.com/article/p-ucfaxfwz-gt.htmljava

https://segmentfault.com/a/1190000008551182?utm_source=tuicool&utm_medium=referralreact

http://www.javashuo.com/article/p-blpcplcp-k.htmlgit

#### redux es6

http://www.javashuo.com/article/p-rjiapdwv-bu.htmlgithub

redux-saga http://www.javashuo.com/article/p-njecjbgk-bv.htmlredux

https://www.jianshu.com/p/9cbc1e2b6a1dc#

http://www.javashuo.com/article/p-dgduezux-ev.html

https://blog.csdn.net/wj610671226/article/details/82730051

一個github項目 https://github.com/forthealllight/redux-saga-example

中文saga

https://redux-saga-in-chinese.js.org/docs/basics/UsingSagaHelpers.html

#### react官網中文

https://react.docschina.org/

#### react 學習資料彙總

https://github.com/tsrot/study-notes/blob/master/React%E5%AD%A6%E4%B9%A0%E8%B5%84%E6%BA%90%E6%B1%87%E6%80%BB.md

#### react  在線編輯器

https://stackblitz.com/edit/react-testyan?file=index.js

◌◌原理性質◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌

#### 本身實現一個簡版的react哈哈哈

http://www.javashuo.com/article/p-htbrvffu-ed.html

##### 本身實現一個createment

https://www.jianshu.com/p/147651e61524

https://github.com/hujiulong/blog

◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌

####  react元素(React.createElement與Jsx生成的)和組件(在元素外邊包了一層)。

####   有狀態的組件和無狀態的組件

 #### react各個版本的差別

#### 生命週期

 

####

 

◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌

把別人的錯誤變爲本身成長的助力。

#### jsx中  class ==>> className

#### react中點擊事件帶參數會當即執行,只須要換位箭頭函數就能夠了。

#### 事件中傳值的兩種方式,第一種es6的箭頭函數,第二種bind

 

#### react css難道沒有scoped概念麼。

#### react 生命週期。

 

#### react在執行 componentDidMount以前,都是虛擬dom

#### 

document.createElement  與 React.createElement
document.createElement 後邊的title屬性沒有做用。
var newDivH = document.createElement("div",{title: 123});

 

React.createElement + 一個函數 =  class = jsx 
var Newdiv = React.createElement(
    'div',
    {title: 123},
    'ddddddd'
);
// render(Newdiv, document.getElementById('root')); //  能夠
// render(<Newdiv/>, document.getElementById('root')); // 不行

var Newd = () => {
  return Newdiv
}
// render(<Newd/>, document.getElementById('root')); // 這個能夠

 

####  react中findDomNode 的做用。

   import { findDomNode } from 'react-dom';
   var Btn = document.getElementById('btn');
   ReactDom.findDOMNode(Btn).style.color = 'red';
   this.refs.btn.style.color = 'red';

#### unmountComponentAtNode

ReactDOM.unmountComponentAtNode(container)
從 DOM 中卸載組件,會將其事件處理器(event handlers)和 state 一併清除。若是指定容器上沒有對應已掛載的組件,這個函數什麼也不會作。若是組件被移除將會返回 ,若是沒有組件可被移除將會返回 。 truefalse

◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌◌

 #### 指針屬性的某個值更新會觸發麼。

#### 插件 vscode 關於React的  es7  (輸入rcc自動回發生改變)

 

聲明式UI和非聲明式UI。
http://www.javashuo.com/article/p-kxirqxki-kg.html
相關文章
相關標籤/搜索