React
2c不高兴
一枚前端开发搬运工,面向api开发,百度谷歌搜索一键复制粘贴攻城狮
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
React router6路由封装
react router6 封装原创 2023-03-07 11:26:02 · 553 阅读 · 0 评论 -
react页面滚动监控(hooks,componentDidMount)
componentDidMount声明周期版本 import React, { Component } from 'react' interface Props { } interface State { } export default class index extends Component<Props, State> { state = {} render() { return ( <div>原创 2022-03-29 10:59:28 · 3235 阅读 · 0 评论 -
react 封装API
http.js /** * 网络请求配置 */ import axios from "axios"; axios.defaults.timeout = 100000; axios.defaults.baseURL = "http://127.0.0.1:8000/"; /** * http request 拦截器 */ axios.interceptors.request.use( (config) => { config.data = JSON.stringify(confi原创 2022-03-04 16:29:03 · 2238 阅读 · 0 评论 -
React 快速入门
首先下载两个包 npm i react react-dom <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=原创 2021-07-19 22:31:16 · 664 阅读 · 0 评论
分享