react-ts-init:React+ ts

时间:2024-04-06 10:09:26
【文件属性】:

文件名称:react-ts-init:React+ ts

文件大小:55.14MB

文件格式:ZIP

更新时间:2024-04-06 10:09:26

JavaScript

import React from 'react'; // the hook import { useTranslation } from 'react-i18next'; function MyComponent () { const { t, i18n } = useTranslation(); return

{t('Welcome to React')}

} import React from 'react'; // the hoc import { withTranslation } from 'react-i18next'; function MyComponent ({ t }) { return

{t('Welcome to React')}

} export default withTranslation()(MyCompon


网友评论