[Poi] Customize Babel to Build a React App with Poi
2023-09-14 08:59:17 时间
Developing React with Poi is as easy as adding the babel-preset-react-app
to a .babelrc and installing React. This lesson will walk you through that quick process and get your React app up-and-running.
Install:
npm i react react-dom babel-preset-react-app babel-plugin-react-require
.babelrc:
{ "presets": [ "react-app" ], "plugins": [ "react-require" ] }
index.js:
// import React from 'react'; // NO NEED because babel-plugin-react-require import {render} from 'react-dom'; render(<h1>React</h1>, document.getElementById("app"))
Run:
poi
相关文章
- [译] Facebook:我们是如何构建第一个跨平台的 React Native APP
- 安卓手机备忘录app删除了怎么恢复
- 【华为云技术分享】前端快速建⽴Mock App
- [React] Setup an API Proxy in Create React App
- [React Testing] Test your Custom Hook Module with react-hooks-testing-library
- [React] {svg, css module, sass} support in Create React App 2.0
- [React Intl] Render Content Based on a Number using react-intl FormattedMessage (plural)
- [React Intl] Render Content with Placeholders using react-intl FormattedMessage
- create-react-app的使用及原理分析
- [React] Use react styled system with styled components
- [Poi] Customize Babel to Build a React App with Poi
- [React] Create a Virtualized List with Auto Sizing Cells using react-virtualized and CellMeasurer
- [React] Create & Deploy a Universal React App using Zeit Next
- React的source code init时会自动检测Chrome dev tool的react extension装了没
- Android面试-Android性能优化和内存优化、APP启动速度一线大厂的实战案例解析
- 接了几个APP逆向私活,一单一个W
- Mac提示App已损坏 你应该将它移到废纸篓的解决方案
- Android 11.0 Launcher3仿ios长按app图标实现抖动动画开始拖拽停止动画
- 【taro react】---- 编译微信小程序后报错:Error: Minified React error #321;