RIOChing

关注

react笔记之学习之使用create-react-app创建文件

RIOChing

关注

阅读 178

2022-12-31


前言

react笔记之学习之使用create-react-app创建文件_App

app.js

import React from 'react';

const App = () => {
return (
<div>
我是App
</div>
);
};

export default App;

index.js

import React from 'react';
import ReactDOM from 'react-dom/client';
import App from "./App";

const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(
<React.StrictMode>
<App/>
</React.StrictMode>
);



相关推荐

善解人意的娇娇

#yyds干货盘点 react笔记之学习之使用create-react-app创建文件

善解人意的娇娇 105 0 0

西特张

使用create-react-app创建react项目

西特张 44 0 0

搬砖的小木匠

使用create-react-app 创建react应用

搬砖的小木匠 80 0 0

分湖芝蘭

React创建create-react-app项目

分湖芝蘭 111 0 0

微言记

创建create-react-app失败

微言记 117 0 0

googlefrank

使用create-react-app脚手架创建react项目

googlefrank 38 0 0

zhyuzh3d

React create-react-app搭建(npx)

zhyuzh3d 112 0 0

东方小不点

使用克隆的 create-react-app 创建 React 项目:分步指南

东方小不点 25 0 0

90哦吼

create-react-app卸载与升级

90哦吼 164 0 0

烟中雯城

create-react-app入门教程

烟中雯城 92 0 0

精彩评论(0)

0 0 举报