Giter VIP home page Giter VIP logo

admin-demo's Introduction

Getting Started with Create React App

启动步骤:

npm install

npm satrt

介绍

创建命令

npx create-react-app admin-demo --template typescript

node 版本 v16.8.0

npm 版本 8.4.1

安装 react-router v6:

npm install --save react-router-dom history

安装 antd

npm install antd

src/pages 中为页面目录,home为主页,放置页面结构,构建菜单

src/api/student.json 是 mock 的数据,所有的拉取接口的操作都是这一个,当然,开发环境中不会是同一个的,crud 各一个接口。

你会发现编辑和添加时不会生效,因为我的代码没有编辑 json 文件的内容,当然不会变,只是测试数据,没后端,就不做实际的了。

react-router v6 文档

react-router-dom 配置教程

axois 文档

antd 组件库文档

mock 数据教程

admin-demo's People

Contributors

foxjokereila 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.