中文亚洲精品无码_熟女乱子伦免费_人人超碰人人爱国产_亚洲熟妇女综合网

當(dāng)前位置: 首頁 > news >正文

香港購物網(wǎng)站優(yōu)化大師專業(yè)版

香港購物網(wǎng)站,優(yōu)化大師專業(yè)版,百合網(wǎng) 網(wǎng)站 開發(fā),高端網(wǎng)站登錄入口React Typescript Webpack 模板 模板展示項目結(jié)構(gòu)使用的部分?jǐn)U展包頁面配置代碼Layout 公共容器組件路由Jspackage.json 開源模板下載TIP 模板展示 項目結(jié)構(gòu) 使用的部分?jǐn)U展包 📂 System ├── 📂 Plugin │ ├── 📄 file-loader | 在處…

React + Typescript + Webpack 模板

  • 模板展示
  • 項目結(jié)構(gòu)
  • 使用的部分?jǐn)U展包
  • 頁面配置代碼
    • Layout 公共容器組件
    • 路由Js
    • package.json
  • 開源模板下載
  • TIP

模板展示

在這里插入圖片描述

項目結(jié)構(gòu)

在這里插入圖片描述

使用的部分?jǐn)U展包

📂 System
├── 📂 Plugin
│ ├── 📄 file-loader | 在處理圖片文件時,Webpack 會將它們復(fù)制到輸出目錄并生成一個哈希值文件名
│ ├── 📄 style-loader && css-loader | Webpack 將會使用 css-loader 解析 CSS 文件,并使用 style-loader 將其轉(zhuǎn)化為可應(yīng)用的樣式
│ ├── 📄 @babel/preset-typescript | 將 TypeScript 代碼轉(zhuǎn)換為 JavaScript 代碼
│ └── 📄 @babel/core: “^7.23.5”
│ └── 📄 @babel/preset-typescript: “^7.23.3”
│ └── 📄 @types/styled-components: “^5.1.32”
│ └── 📄 @typescript-eslint/eslint-plugin: “^6.4.0”
│ └── 📄 eslint擴(kuò)展全家桶
│ └── 📄 customize-cra: “^1.0.0”
│ └── 📄 react-app-rewired: “^2.2.1”
│ └── 📄 customize-cra: “^1.0.0”

頁面配置代碼

Layout 公共容器組件

import React, { ReactNode } from "react";
import CCV4 from "../cc-by-4.0"interface LayoutProps {children: ReactNode;
}const Layout: React.FC<LayoutProps> = ({ children } : any) => {const layoutStyle: React.CSSProperties = {minHeight: "100vh",display: "flex",flexDirection: "column",};const mainStyle: React.CSSProperties = {backgroundColor: `rgb(248,248,248)`,flex: 1,};const mainFooter: React.CSSProperties = {padding: "0 50px",display: "flex",alignItems: "center",justifyContent: "center",height: "50px",lineHeight: "50px"};return (<div style={layoutStyle}><header>header</header><main style={mainStyle}>{children}</main><footer style={mainFooter}><CCV4></CCV4></footer></div>);
};export default Layout;

路由Js

import React, { Fragment, Component } from "react";
import Home from "../pages/Home/home";
import { BrowserRouter, Route, Routes } from "react-router-dom";export default class index extends Component {render() {return (<Fragment><BrowserRouter><Routes><Route path="/" element={<Home />} /></Routes></BrowserRouter></Fragment>);}
}

package.json

{"name": "blog-react-typescript","version": "1.0.0","author": "starlight-fungus || 東方幻想郷","private": true,"dependencies": {"@babel/eslint-parser": "^7.23.3","@babel/preset-react": "^7.23.3","@testing-library/jest-dom": "^5.17.0","@testing-library/react": "^13.4.0","@testing-library/user-event": "^13.5.0","@types/jest": "^27.5.2","@types/node": "^16.18.66","@types/react": "^18.2.39","@types/react-dom": "^18.2.17","babel-loader": "^9.1.3","css-loader": "^6.8.1","file-loader": "^6.2.0","react": "^18.2.0","react-dom": "^18.2.0","react-router": "4.3.1","react-router-dom": "^6.20.0","react-scripts": "5.0.1","style-loader": "^3.3.3","styled-components": "^6.1.1","typescript": "^5.3.2","web-vitals": "^2.1.4","webpack": "^5.89.0","webpack-cli": "^5.1.4"},"scripts": {"start": "react-app-rewired start","webpack-build": "webpack --config webpack.config.js","build-production": "react-app-rewired build mode --production"},"eslintConfig": {"extends": ["react-app","react-app/jest"]},"browserslist": {"production": [">0.2%","not dead","not op_mini all"],"development": ["last 1 chrome version","last 1 firefox version","last 1 safari version"]},"devDependencies": {"@babel/core": "^7.23.5","@babel/preset-env": "^7.23.5","@babel/preset-typescript": "^7.23.3","@types/styled-components": "^5.1.32","@typescript-eslint/eslint-plugin": "^6.4.0","customize-cra": "^1.0.0","eslint": "^8.0.1","eslint-config-airbnb": "^19.0.4","eslint-config-standard-with-typescript": "^40.0.0","eslint-plugin-import": "^2.25.2","eslint-plugin-n": "^15.0.0 || ^16.0.0 ","eslint-plugin-promise": "^6.0.0","eslint-plugin-react": "^7.33.2","eslint-plugin-react-hooks": "^4.6.0","react-app-rewired": "^2.2.1"}
}

開源模板下載

React + TypeScript + Webpack => 便捷模板項目(配置完畢)

TIP

本項目使用 cc by 4.0 協(xié)議,項目可以隨意使用,若出現(xiàn)任何法律糾紛,與項目作者無關(guān)

http://www.risenshineclean.com/news/27642.html

相關(guān)文章:

  • 珠海工程建設(shè)信息網(wǎng)站快速網(wǎng)站輕松排名
  • 做二手網(wǎng)站有哪些問題愛站工具包的主要功能
  • 西安網(wǎng)站建設(shè)公搜索廣告是什么
  • 公司網(wǎng)站如何推廣今日頭條極速版官網(wǎng)
  • 電子商務(wù)網(wǎng)站設(shè)計書東莞seo技術(shù)
  • 做網(wǎng)站怎么做多少錢品牌推廣活動策劃案例
  • 購物網(wǎng)站支付功能怎么做有創(chuàng)意的網(wǎng)絡(luò)廣告案例
  • 內(nèi)容型網(wǎng)站的運(yùn)營百度合伙人官方網(wǎng)站
  • 鴻興網(wǎng)站建設(shè)公司百度allin 人工智能
  • 浙江做網(wǎng)站公司品牌營銷策劃網(wǎng)站
  • 海拉爾做網(wǎng)站多少錢官網(wǎng)seo哪家公司好
  • 石家莊網(wǎng)站制作招聘seo矩陣培訓(xùn)
  • 長沙網(wǎng)絡(luò)公司網(wǎng)站網(wǎng)絡(luò)seo啥意思
  • 做付費(fèi)下載的網(wǎng)站怎樣做百度推廣
  • ??诿赓M(fèi)網(wǎng)站建設(shè)提高網(wǎng)站流量的軟文案例
  • 衡水營銷型網(wǎng)站建設(shè)軟文街官方網(wǎng)站
  • 全球十大互聯(lián)網(wǎng)公司排行榜seo優(yōu)化網(wǎng)站源碼
  • 網(wǎng)站icp備案電商培訓(xùn)心得體會
  • 有一個做名片的網(wǎng)站提高網(wǎng)站排名軟件
  • 中山網(wǎng)站制作費(fèi)用百度熱詞指數(shù)
  • 郵箱域名可以做網(wǎng)站嗎企業(yè)網(wǎng)站建設(shè)方案策劃書
  • wordpress添加頁面的代碼河北網(wǎng)站seo地址
  • 網(wǎng)絡(luò)廣告案例以及分析智能優(yōu)化網(wǎng)站
  • 做一個網(wǎng)站需要多少時間常見的網(wǎng)絡(luò)營銷策略都有哪些
  • 保潔公司在哪個網(wǎng)站做推廣比較好點擊排名優(yōu)化
  • 在家做十字繡兼職網(wǎng)站今日國際新聞最新消息
  • 如皋做網(wǎng)站公司品牌網(wǎng)絡(luò)營銷策劃書
  • 建設(shè)日本網(wǎng)站首頁seo優(yōu)化收費(fèi)
  • 怎么用dw做靜態(tài)網(wǎng)站如何做企業(yè)網(wǎng)頁
  • 宿州網(wǎng)站建設(shè)時間seo基礎(chǔ)教程視頻