武拉 注意:该项目正在! 在应用中使用组件: import React from ' react ' import MyVueComponent from ' ./MyVueComponent.vue ' export default props => 或者在您的应用程序中使用组件: < my-react-c
2021-11-29 21:24:22 83KB react vue babel-plugin interop
1
@ compiled /网站 文档的网站。 入门 yarn # Install dependencies yarn build:examples # Build examples that are using in the website 运行登录页面 这是网站的主页。 yarn start:landing 运行文档 这是实际的文档。 yarn start:docs 常问问题 为什么在monorepo中不这样? 该网站是用Compiled编写的。 我们要确保消费故事完全有效,而不受monorepo的影响。 为什么登录页面和文档是分开的应用程序? 以前,我们的目标网页是TypeScript构建,而文档是Babel构建。 自从我们对Babel进行标准化以来,我们还没有完成整合工作。
2021-03-16 09:17:33 211KB css typescript babel-plugin reactjs
1
一个babel插件,用于从Flow类型声明中生成React PropTypes定义。 例子 使用此输入: var React = require ( 'react' ) ; export type Qux = { baz : 'literal' } ; import type SomeExternalType from './types' ; type FooProps = { an_optional_string ?: string , a_number : number , a_boolean : boolean , a_generic_object : Object , array_of_strings : Array , instance_of_Bar : Bar , anything : any , mixed : mixe
2021-02-19 21:08:00 385KB JavaScript
1