本身動手從頭作一個react路由

本案例用的是create-react-app腳手架生產的demo,在建立好後須要安裝history模塊和prop-types模塊。javascript npm install history --save npm install prop-types history主要是須要來製做前進後退相關的步驟,而prop-types則是基本的類型檢查。vue 安裝以上兩個模塊後就開始製做react的路由。j
相關文章
相關標籤/搜索