Giter Club home page Giter Club logo

reactdemo's Introduction

前端自学组件示例项目

项目介绍

  • 技术栈 React(使用React官方脚手架)
  • Ant Design 组件库(按需加载)
  • 代码高亮插件 highlight.js 使用请参考此链接
  • 展示页面分为两部分,左侧演示demo,右侧demo介绍和code展示
  • 脚手架的webpack配置
  1. node_modules>react-scripts>config 找到此文件夹修改里面的相关文件 (还可以用npm run eject把配置文件暴露出来,此操作不可逆)
  2. 创建.env文件可以在里面设置端口和环境变量
  3. 使用react-app-rewired,安装这个工具后,在项目根目录中新建文件config-overrides.js文件

项目结构介绍

以下皆为src文件夹里的内容

文件夹 注解
assets 图片资源
components 组件
pages 页面
router 路由
service.js 封装接口(axios)
services 接口文件

reactdemo's People

Watchers

James Cloos avatar  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.