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
巴布亚
设置和构建现代的Web应用程序。
安装
新项目
// Create default template in current directory.
npm init now papua
// Initialize default template in 'my-project' directory.
npm init now papua . / my - project
// Initialize Typescr ipt template in current directory.
npm
Projeto React Native com打字稿
后端:
首字母缩写:
npx react-native init appgobarber --template react-native-template-typescr ipt
Abrir o projeto no vscode
Criar或arquivo src/App.tsx com src/App.tsx :
import React from 'react' ;
import { View } from 'react-n