1.1 初始化react项目

REACT实战项目从0到1搭建(仅供参考) 按照。 阅读详情

一、创建react-ts项目

yarn create vite myreact --template react-ts

二、安装依赖

yarn

三、启动项目

npm run dev

四、新建目录

五、pages目录新建个index.tsx,代码来源AntDesgin,然后改造为TS

https://pro.ant.design/

https://motion.ant.design/

https://ant.design/

import TweenOne from 'rc-tween-one';
import React from 'react';
import '../style/index.css'
import Login from "../components/login";
 class GridLayout {
     private cellWidth: number;
     private cellHeight: number;
     private gridY: number;
     private gridX: number;
     private grid: Array<any>;
    constructor(rect: number, width: number, height: number) {
        this.gridX = Math.floor(width / rect);
        this.gridY = Math.floor(height / rect);
        this.cellWidth = width / this.gridX;
        this.cellHeight = height / this.gridY;
        this.grid = [];
        for (let i = 0; i < this.gridY; i += 1) {
            this.grid[i] = [];
            for (let s = 0; s < this.gridX; s += 1) {
                this.grid[i][s] = [];
            }
        }
    }

    getCells = (e: { x: number; radius: number; y: number; }) => {
        const gridArray = [];
        const w1 = Math.floor((e.x - e.radius) / this.cellWidth);
        const w2 = Math.ceil((e.x + e.radius) / this.cellWidth);
        const h1 = Math.floor((e.y - e.radius) / this.cellHeight);
        const h2 = Math.ceil((e.y + e.radius) / this.cellHeight);
        for (let c = h1; c < h2; c += 1) {
            for (let l = w1; l < w2; l += 1) {
                gridArray.push(this.grid[c][l]);
            }
        }
        return gridArray;
    }

    hasCollisions = (t: { x: number; y: number; radius: number; }) => (
        this.getCells(t).some(e => e.some((v: any) => this.collides(t, v)))
    )

    collides = (t: { x: any; y: any; radius: any; }, a: { x: number; y: number; radius: any; }) => {
        if (t === a) {
            return false;
        }
        const n = t.x - a.x;
        const i = t.y - a.y;
        const r = t.radius + a.radius;
        return n * n + i * i < r * r;
    }

    add = (value:any) => {
        this.getCells(value).forEach((item) => {
            item.push(value);
        });
    }
}

const getPointPos = (width: number, height: number, length: number) => {
    const grid = new GridLayout(150, width, height);
    const posArray = [];
    const num = 500;
    const radiusArray = [20, 35, 60];
    for (let i = 0; i < length; i += 1) {
        let radius;
        let pos;
        let j = 0;
        for(let j =0; j< num; j+=1) {
            radius = radiusArray[Math.floor(Math.random() * radiusArray.length)];
            pos = { x: Math.random() * (width - radius * 2) + radius, y: Math.random() * (height - radius * 2) + radius, radius };
            if (!grid.hasCollisions(pos)) {
                break;
            }
        }
        posArray.push(pos);
        grid.add(pos);
    }
    return posArray;
};

const getDistance = (t: { x: any; y: any; }, a: { x: any; y: any; }) => (Math.sqrt((t.x - a.x) * (t.x - a.x) + (t.y - a.y) * (t.y - a.y)));

 class Point extends React.PureComponent {
    render() {
        const { tx, ty, x, y, opacity, backgroundColor, radius, ...props }:Readonly<any>= this.props;
        let transform;
        let zIndex = 0;
        let animation:any = {
            y: (Math.random() * 2 - 1) * 20 || 15,
            duration: 3000,
            delay:Math.random() * 1000,
            yoyo: true,
            repeat: -1,
        };
        if (tx && ty) {
            if (tx !== x && ty !== y) {
                const distance = getDistance({ x, y }, { x: tx, y: ty });
                const g = Math.sqrt(2000000 / (0.1 * distance * distance));
                transform = `translate(${g * (x - tx) / distance}px, ${g * (y - ty) / distance}px)`;
            } else if (tx === x && ty === y) {
                transform = `scale(${80 / radius})`;
                animation = { y: 0, yoyo: false, repeat: 0, duration: 300 };
                zIndex = 1;
            }
        }
        return (
            <div
                style={{
                    left: x - radius,
                    top: y - radius,
                    width: radius * 1.8,
                    height: radius * 1.8,
                    opacity,
                    zIndex,
                    transform,
                }}
                {...props}
            >
                <TweenOne
                    animation={animation}
                    style={{
                        backgroundColor,
                    }}
                    // @ts-ignore
                    className={`${this.props.className}-child`}
                />
            </div>

        );
    }
}

 class LinkedAnimate extends React.Component {
    static defaultProps = {
        className: 'linked-animate-demo',
    };

    num = 60;// 点的个数
     private box: any;

    constructor(props: {} | Readonly<{}>) {
        super(props);
        this.state = {
            data: getPointPos(1280, 600, this.num).map(item => ({
                ...item,
                opacity: Math.random() * 0.2 + 0.05,
                backgroundColor: `rgb(${Math.round(Math.random() * 40 + 120)},230,255)`,
            })),
            tx: 0,
            ty: 0,
        };
    }

    onMouseMove = (e: { clientX: any; clientY: any; }) => {
        const cX = e.clientX;
        const cY = e.clientY;
        const boxRect = this.box.getBoundingClientRect();
        // @ts-ignore
        const pos = this.state.data.map((item: { x: any; y: any; radius: any; }) => {
            const { x, y, radius } = item;
            return { x, y, distance: getDistance({ x: cX - boxRect.x, y: cY - boxRect.y }, { x, y }) - radius };
        }).reduce((a: { distance: number; }, b: { distance: number; }) => {
            if (!a.distance || a.distance > b.distance) {
                return b;
            }
            return a;
        });
        if (pos.distance < 60) {
            this.setState({
                tx: pos.x,
                ty: pos.y,
            });
        } else {
            this.onMouseLeave();
        }
    }

    onMouseLeave = () => {
        this.setState({
            tx: 0,
            ty: 0,
        });
    }

    render() {
        // @ts-ignore
        const { className } = this.props;
        const { data, tx, ty }:any = this.state;
        return (
            <div className={`${className}-wrapper`}>
                <Login />
                <div

                    className={`${className}-box`}
                    ref={(c) => { this.box = c; }}
                    onMouseMove={this.onMouseMove}
                    onMouseLeave={this.onMouseLeave}
                >
                    {data.map((item:any, i:any) => (
                        <Point {...item} tx={tx} ty={ty} key={i.toString()} className={`${className}-block`} />
                    ))}
                </div>
            </div>
        );
    }
}

export default LinkedAnimate

 六、style目录下建个index.css

.linked-animate-demo-wrapper {
    overflow: hidden;
    height: 100%;
    background: GhostWhite;
    position: absolute;
    width: 100%;
}

.linked-animate-demo-box {
    position: absolute;
    width: 50%;
    height: 50%;
    display: block;
    left: 0%;
    top: 0;
    bottom: 0;
    right: 70%;
    margin: auto;
}

.linked-animate-demo-block {
    position: absolute;
    transition: transform .45s ease;
}

.linked-animate-demo-block-child {
    border-radius: 100%;
    width: 100%;
    height: 100%;
}
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

code {
    font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
    monospace;
}

七、components下建立个login.tsx

import React from "react";
import {Button, Input, Space} from 'antd';
import Icon,{UserOutlined, EyeInvisibleOutlined, EyeTwoTone } from '@ant-design/icons';
import 'antd/dist/antd.css'
import './login.css'
import {Link} from "react-router-dom"
class Login extends React.Component<any, any> {
    constructor(props: any) {
        super(props);
        this.state = {
            defaultactive : false,
        }
    }
    render() {
        const PasswordSvg = () => (
            <svg d="1629272463432" className="icon" viewBox="0 0 1024 1024" version="1.1"
                 xmlns="http://www.w3.org/2000/svg" p-id="14838" width="16" height="16">
                <path
                    d="M825.5 832.2h-627c-72.7 0-131.9-59.1-131.9-131.9V323.6c0-72.7 59.1-131.9 131.9-131.9h626.9c72.7 0 131.9 59.1 131.9 131.9v376.7c0 72.8-59.1 131.9-131.8 131.9z m-627-602.7c-51.9 0-94.2 42.2-94.2 94.2v376.7c0 51.9 42.3 94.2 94.2 94.2h626.9c51.9 0 94.2-42.2 94.2-94.2V323.6c0-51.9-42.3-94.2-94.2-94.2H198.5z"
                    fill="#2c2c2c" p-id="14839"></path>
                <path
                    d="M247.6 646.7h528.8v37.7H247.6zM830.4 388.7h-75.3V351h75.3v37.7z m-131.8 0h-75.3V351h75.3v37.7z m-131.9 0h-75.3V351h75.3v37.7z m-131.8 0h-75.3V351h75.3v37.7z m-131.9 0h-75.3V351H303v37.7zM830.4 547.9h-75.3v-37.7h75.3v37.7z m-131.8 0h-75.3v-37.7h75.3v37.7z m-131.9 0h-75.3v-37.7h75.3v37.7z m-131.8 0h-75.3v-37.7h75.3v37.7z m-131.9 0h-75.3v-37.7H303v37.7z"
                    fill="#2c2c2c" p-id="14840"></path>
            </svg>
        );
        const PasswordIcon = (props: any) => <Icon component={PasswordSvg} {...props} />;
        return (
            <div id={"login"}>
            <Space direction={"vertical"} align={"center"} size={18} >
                <h3>Login Your Account</h3>
                <Input placeholder=" Enter username" allowClear={true} className={"userInfo"} prefix={<UserOutlined />}/>
                <Input.Password
                    placeholder=" Enter password"
                    iconRender={visible => (visible ? <EyeTwoTone/> : <EyeInvisibleOutlined/>)}
                    className={"userInfo"}
                    prefix={<PasswordIcon />}
                />
                 <Link to={'/test'}> <Button type="primary" className={"userInfo"} >Sign In</Button></Link>
            </Space>
            </div>
        )
    }
}

export default Login

login.css

#login{
    background-color: GhostWhite;
    width: 20%;
    height: 40%;
    text-align: center;
    position: relative;
    left: 68%;
    top: 10%;
    z-index: 1;
    opacity: 0.8;
}
.userInfo {
    width: 260px;
    font: 16px bold;
}
h3{
    font-size: 24px;
}


八、assets目录下准备几张icon

https://www.iconfont.cn/

logo.svg\icon.svg\keyboard.svg

九、main.tsx修改

import React from 'react'
import ReactDOM from 'react-dom'
import LinkedAnimate from './pages/index'
import Home from "./pages/home";
import {BrowserRouter, Route, Switch} from 'react-router-dom';
ReactDOM.render(
        <BrowserRouter>
            <Switch>
            <Route path="/test" component={Home}/>
            <Route path="/" component={LinkedAnimate}/>
            </Switch>
        </BrowserRouter>,
  document.getElementById('root')

十、pages新建个home.tsx,代码依然是antdesign上的

import {Layout, Menu} from 'antd';
import {
    AppstoreOutlined,
    BarChartOutlined,
    CloudOutlined,
    ShopOutlined,
    TeamOutlined,
    UserOutlined,
    UploadOutlined,
    VideoCameraOutlined,
} from '@ant-design/icons';
import React from 'react';

const {Header, Content, Footer, Sider} = Layout;

class Home extends React.Component<any, any> {
    constructor(props: any) {
        super(props);
    }
    render() {  let a = {
    width:'100%',
    height:'40px'}

        return (
            <Layout>
                <Sider
                    style={{
                        overflow: 'auto',
                        height: '100vh',
                        position: 'fixed',
                        left: 0,
                    }}
                >

                    <div className="logo" />
                    <Menu theme="dark" mode="inline" defaultSelectedKeys={['4']}>
                        <div style={a}>111</div>
                        <Menu.Item key="1" icon={<UserOutlined />}>
                            Home
                        </Menu.Item>
                        <Menu.Item key="2" icon={<VideoCameraOutlined />}>
                            Period
                        </Menu.Item>
                        <Menu.Item key="3" icon={<UploadOutlined />}>
                            Stroies
                        </Menu.Item>
                        <Menu.Item key="4" icon={<BarChartOutlined />}>
                            Tasks
                        </Menu.Item>
                        <Menu.Item key="5" icon={<CloudOutlined />}>
                            Bugs
                        </Menu.Item>
                        <Menu.Item key="6" icon={<AppstoreOutlined />}>
                            Statistics
                        </Menu.Item>
                        <Menu.Item key="7" icon={<TeamOutlined />}>
                            UserInfo
                        </Menu.Item>
                        <Menu.Item key="8" icon={<ShopOutlined />}>
                            RoleInfo
                        </Menu.Item>
                    </Menu>
                </Sider>
                <Layout className="site-layout" style={{ marginLeft: 200 }}>
                    <Header className="site-layout-background" style={{ padding: 0 }} />
                    <Content style={{ margin: '24px 16px 0', overflow: 'initial' }}>
                        <div className="site-layout-background" style={{ padding: 24, textAlign: 'center' }}>

                        </div>
                    </Content>
                    <Footer style={{ textAlign: 'center' }}>Ant Design ©2018 Created by Ant UED</Footer>
                </Layout>
            </Layout>
        )
    }

}

export default Home


 十一、启动看看效果,初学阶段,先记录一下

 

 

react项目初始化 React作为当今最流行的前端框架之一,其项目初始化方式随着工具链的发展不断优化。本文将详细介绍两种主流初始化方法(Create React App 和 Vite),并指导你快速搭建现代化React应用。 阅读详情

相关推荐

react-init:初始化一个React项目

React init config React开发环境,扩展一下就是WEB前端开发环境。不断完善中...

react学习(一)之初始化一个react项目

有很多搭载了其他js的创建,根据自己需要去创建即可。我用的cra创建,npm的时候报错了一堆不知道为啥。是一个用于构建用户界面(UI)的 JavaScript 库,用户界面由按钮、文本和图像等小单元内容构建而成。从 web 端网站到移动端应用,屏幕上的所有内容都可以被分解成组件,即,可由react构建。node版本要么是14,要么大于16.14,我是16.13,所以被提示了。运行起来,报错了,如下图,web-vitals没找着,那就install一下。好了,npm start 运行成功!

若末lan的博客 1014

Plant Simulation 实战指南:从二次分配问题到优化布局设计

本文是一份Plant Simulation实战指南,详细讲解了如何利用该仿真软件解决工厂布局中的二次分配问题。通过从数据准备、模型搭建到集成遗传算法进行自动化优化的完整流程,帮助工程师在数字孪生环境中高效寻找最优设备布局方案,从而显著降低物流成本,提升生产效率。

i1j2k的博客 564

初始化一个React项目保姆级全过程

根据这个教程下来,应该可以大致了解React项目基于Nextjs框架的搭建与结构。这些东西看似简单,但对于入门者来说需要一段时间去摸索尝试才能理清思路。前期的搭建反而不算难事,后期了解结构之后就可以进行开发啦!!!

Xu1030的博客 3820

CIC-IDS-2018数据集高效预处理实战:从数据清洗到特征整合

本文详细介绍了CIC-IDS-2018数据集的高效预处理方法,从数据清洗到特征整合的全流程实战。通过内存优化、异常值处理和特征工程等技巧,帮助网络安全研究人员快速处理大规模网络流量数据,提升机器学习模型的训练效率和准确率。特别针对特征数据的预处理提供了实用代码示例和优化建议。

weixin_29274969的博客 501

ControlCAN.dll开发适配USBCAN_E/2E_U设备

摘要:本文提供了USBCAN_E/2E_U设备的配置指南:1)安装专用驱动;2)获取最新的ControlCAN.dll文件;3)修改VCI调用顺序,新增VCI_SetReference函数设置波特率;4)使用工具计算波特率配置值,并给出了常见波特率对应的代码参考值(如500K对应0x060007)。配置过程强调使用特定工具计算精确的波特率参数,并提供了相关软件下载链接。

weixin_43969033的博客 387

从0到1搭建Letmeask:基于React 17与TypeScript的项目初始化

Letmeask是一个基于React 17与TypeScript构建的实时问答平台项目,通过本指南你将快速掌握如何从零开始搭建这个项目的开发环境。 ## 1. 环境准备:安装必要工具 在开始项目初始化前,请确保你的开发环境中已安装以下工具: - Node.js(推荐v14+版本) - npm或yarn包管理器 - Git版本控制工具 ## 2. 获取项目代码 使用Git命令克隆项目仓库到本

gitblog_00324的博客 718

小白 虚拟机 kali_Linux安装 详细教程

安装版本:VMmare workstation pro kali_Linux 安装环境:Window10 首先我们先了解一下什么是kali_linux: Kali Linux是基于Debian的Linux发行版, 设计用于数字取证操作系统。每一季度更新一次。由Offensive Security Ltd维护和资助。最先由Offensive Security的Mati Aharoni和Devon Kearns通过重写BackTrack来完成,BackTrack是他们之前写的用于取证的Linux发行

m0_50917178的博客 9万+

react id选择器_React 快速教程(1):初始化项目

由于即将参加项目的缘故,需要了解学习 React 这个库。所以今天开始了 React 的学习之旅。由于我有着 Angular 和 Vue 的背景,相信学习 React 不会有太大的困难。React 不同于 Angular,React 仅仅是一个构建动态 UI 的库。但是早有听说它的代码构建方式有点古怪,而且是典型的函数式编程,所以就认真的研究了一下其中的奥秘。Step 1:安装Create-rea...

weixin_39985472的博客 1698

OpenWrt kmod内核不兼容?手把手教你用脚本强制安装驱动模块(附国内镜像源)

本文详细解决了OpenWrt kmod内核不兼容问题,提供智能脚本强制安装驱动模块的方法,并附有国内镜像源加速配置。通过自动化脚本修改内核MD5校验值,确保kmod包正常安装,同时推荐多个国内镜像源以提升下载速度。

weixin_42549451的博客 539

37、基于视觉的轻量级面部呼吸和心率测量技术

本文提出了一种基于视觉的轻量级面部呼吸和心率测量技术,通过远程光电容积脉搏波描记法(RPPG)和面部振动信息实现非接触式生理信号采集。创新性地结合框选和特征点选择多个感兴趣区域(ROI),并采用光流跟踪、主成分分析(PCA)和集成经验模态分解(EEMD)等方法优化信号处理流程。实验结果表明,该方法在测量精度和稳定性方面优于传统方法,并可在树莓派4等低功耗平台上实现实时运行,具有广泛的应用前景。

r7s8t的博客 306

create-react-app 教程1 项目初始化,目录介绍

使用以下命令来创建一个react-app npm init react-app my-app cd my-app npm run start 默认启动服务的端口为3000 启动后访问 localhost:3000 即可看到效果 项目目录介绍 my-app/ README.md node_modules/ package.json public/ index.html favicon.ico src/ App.css Ap..

知无涯 1万+

电路布局中近场耦合问题

开关电源EMC设计中,传导骚扰超标往往源于空间耦合而非参数问题。某案例中,DC-DC模块的非屏蔽电感磁场泄漏耦合到邻近X电容,导致0.5MHz频点超标。通过将X电容移至PCB底层、优化布局保持15mm间距后,问题完全解决。实践证明:EMC设计需注重空间隔离,优先采用屏蔽电感,滤波元件应远离高频磁场区,布局优化比参数调整更有效。这提示工程师需将电磁兼容视为空间问题而不仅是电气问题。

硬核科技 374

react 组件连动效果_React 快速教程(1):初始化项目

由于即将参加项目的缘故,需要了解学习 React 这个库。所以今天开始了 React 的学习之旅。由于我有着 Angular 和 Vue 的背景,相信学习 React 不会有太大的困难。React 不同于 Angular,React 仅仅是一个构建动态 UI 的库。但是早有听说它的代码构建方式有点古怪,而且是典型的函数式编程,所以就认真的研究了一下其中的奥秘。Step 1:安装Create-rea...

weixin_39581945的博客 228

vue3+element-plus - 最新详细实现将表格Table组件 “所见所得导出“ 为excel(xls/xlsx)电子表格文件,表格中的图片图像、图标等媒体资源完美导出显示(详细示例代码)

vue3,nuxt3,element plus,表格组件,Table,el-table,导出,下载,excel,电子工作簿,xls,xlsx,将表格导出成xls,如何把表格原封不动的导出成excel,保留图片,带图片,图标,如何导出包括含有图片的Excel表格,图片和表格数据导出excel,把表格导出成excel格式,表格内的图片一起导出,vue3导出图片和数据到Excel,可导出图片,导出图像到Excel,网页上的图片怎么能导出到xls表格中,显示图片url链接,图片太多导出失败,图片会超出单元格,图片不

✅ 精选推荐文章 4766

Devexpress16.2.6破解工具

Devexpress16.2.6破解工具Devexpress16.2.6破解工具Devexpress16.2.6破解工具Devexpress16.2.6破解工具

react实战项目开发(1) 搭建react开发环境初始化项目(Create-react-app)

前言 Create React App npm install -g create-react-app create-react-app my-app cd my-app npm start 执行命令后新建项目:study-react 可以看下项目基本目录: 工程目录介绍 【node_modules】 项目依赖的包文件都在这里 【package.json】 { "name":...

257

LinePhone3.2.7(android端最新版本) sip客户端

SIP客户端For android:LinePhone3.2.7(最新版本),官网地址:http://www.linphone.org/

React-从0到1--初始化项目

系统需求node和npm环境 1、首先全局安装create-react-app工具 npm install --global create-react-app 2、用create-react-app命令创建文件 create-react-app first_react_app 3、输入命令运行项目 npm start 转载于:https://www.cnblogs.com/lk1186...

weixin_33840661的博客 73

大中型超市收银系统(可直接运行)

光步前台收银系统系统功能:商品销售、商品退货、挂单、收银员权限、会员销售、单品取消、整单取消、商品查询、脱机销售、脱机数据上传,基本资料下载,开钱箱、小票打印、收款结算,支持多币种付款方式(现金、储值卡、礼券、微信等),支持多种促销。运行环境:.net 4.0登陆信息用户名:1001 密码:123456内置商品信息,商品编码可输入00001000 - 00010000,测试效果相关功能键F5 结算 F9挂单 F11商品查询 F8退货 Insert单品取消 Del整单取消 F12开钱箱F2 会员 Ctrl+Z退出系统 Home 锁屏 相关源码待公开

计算机控制技术及应用

《计算机控制技术及应用》通过总结作者的科研成果和吸收国内外的先进理论、方法和技术,以计算机控制系统的网络化、开放化、智能化和集成化发展趋势为主线索,主要介绍计算机控制系统的基本概念和计算机控制系统的典型形式,计算机控制系统的数学描述与基本分析方法,以及数字PID控制器、最少拍控制系统、达林算法、状态变量设计法等设计方法及其各种改进算法。重点突出计算机控制系统输入输出通道接口的设计方法和典型控制系统的设计案例与实现方法等。

从0到1的移动端项目create-react-app初始化-react17

从0到1的移动端项目create-react-app初始化-react17 1、create-react-app 初始化项目: npm install -g create-react-app create-react-app my-mobile-app cd my-mobile-app npm start 安装antd-mobile npm install antd-mobile --save 2、入口页面 (html 或 模板) 相关设置: <!DOCTYPE html> <ht

jiao512的专栏 698

React实践项目--todolist(1)初始化配置

本系列文章会展示如何使用React构建一个简单的todo_list项目。由于我们还没有学习redux,所以纯 React来管理数据,以此来巩固React基础。

weixin_44336740的博客 310

1:React-hooks-ts-antd项目初始化

1:全局添加create-react-app控件 yarn global add create-react-app 2:使用create-react-app创建TS项目 yarn create react-app my-app --typescript yarn add typescript @types/node @types/react @types/react-dom @types/jest 将任何文件重命名为 TypeScript 文件(例如src/index.js重命名为s...

he_wen_jian的专栏 428

React Native 0.56.1初始化项目运行出现错误(Module `AccessibilityInfo` does not exist in the Haste module map)...

当使用react-native init myApp初始化项目时,出现以下错误 出现以上错误的原因是因为0.56.1版本初始化项目就有问题,请见https://github.com/facebook/react-native/issues/20331 解决办法是使用react native初始化时,指定版本即可 react-native init myApp --version 0...

weixin_33720956的博客 347

React Native初始化项目0.47.1报错

首先看一下安卓和iOS报错: iOS终端运行报错: Xcode运行报错: 解决办法一: 将版本降到0.44.3,修改package,具体请看我的另一篇博客:http://www.cnblogs.com/pengsi/p/7026564.html 不过我不能总是使用0.44的版本吧. 解决办法二: 安卓解决办法: 将新建的项目用android studio打开下就行了,...

weixin_30416871的博客 111

安装react初始化项目报错 :无法加载文件 C:UsersAdministratorAppDataRoaming pmcreate-react-app.ps1,因为在此系统上禁止运行

创建react项目时报了这个错误 不想把项目放在C盘,所以我是放在别的盘的。就在你想放的盘里建好文件夹,然后shift+鼠标右键 >>> 在此处打开Powershell窗口,然后输入命令行就行啦。 错误提示如下: 解决方法如下: 1、搜索框输入:Windos PowerShell 并且以右键管理员身份运行 2、打开了命令行之后,输入set-ExecutionPolicy RemoteSigned,并且把权限改权限为A,然后通过 get-ExecutionPolic..

总结前端开发中遇到的问题,分享前端知识 2452

搭建Typescript+React项目模板(1) --- 项目初始化

相关文章和阅读顺序 1.项目初始化 2.提升开发体验 3.整理项目和杂项 4.项目打包 5.团队规范 项目地址 目前集成 react - 16.4.x react-router-dom - 4+ mobx - 5+ 状态管理库 typescript - 3.0.x webpack - 4.16.x ant design axios react-loadable 异步组件加载 @svg...

weixin_33946020的博客 462

从零到实战:React无人点餐收银系统教程(1)项目初始化

react官网:react官网 React的介绍: React来自于Facebook公司的开源项目 React 可以开发单页面应用       spa(单页面应用) react 组件化模块化  开发模式 React通过对DOM的模拟(虚拟dom),最大限度地减少与DOM的交互  (数据绑定) react灵活  React可以与已知的库或框架很好地配合。 react 基于jsx的语法,...

到得还来别无事,庐山烟雨浙江潮。 1321
上一篇: 1.9 virtualbox通过NAT网络地址转换访问虚拟机
下一篇: 8、content-scripts实现一个简单的去除广告插件
LetsStudy
博客等级 码龄9年 96粉丝 323原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值