Git Product home page Git Product logo

react-pages's Introduction

项目搭建介绍

一、 项目初始化

  1. webpack相关 npm i -D webpack webpack-cli webpack-merge webpack-dev-server clean-webpack-plugin html-webpack-plugin

  2. react相关 npm i react react-dom @types/react @types/react-dom

  3. typescript相关 npm i -D typescript 配置 tsconfig

  4. Babel相关 npm i babel-loader @babel/core @babel/preset-react @babel/preset-env -D - babel-loader: 使用 babel 加载最新js代码并将其转换为低版本语法 - @babel/corer: babel编译的核心包 - @babel/preset-env: babel 编译的预设,可以转换目前最新的js语法 - @babel/preset-react: 可以解析jsx文件解析为js文件的预设 - babel-plugin-import 按需引入 为组件库实现单组件按需加载并且自动引入其样式 看需求有些ui库不需要引入去支持

  5. 安装 antd npm i -S antd

参考文档

react-pages's People

Contributors

yuanfengyan avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.