React Migration Cheatsheet: Difference between revisions
(init) |
No edit summary |
||
Line 5: | Line 5: | ||
|- | |- | ||
|<code>someString</code> | |<code>someString</code> | ||
|<code>import { useTranslation } from 'react-i18next';<br />const { t } = useTranslation(' | |<code>import { useTranslation } from 'react-i18next';<br />const { t } = useTranslation('modulename');<br />{t('someString')}</code> | ||
|- | |- | ||
|<code><someElement class="..."></code> | |<code><someElement class="..."></code> |
Revision as of 15:07, 13 April 2020
Angular | React |
---|---|
someString
|
import { useTranslation } from 'react-i18next';
|
<someElement class="...">
|
<someElement className="...">
|
<a ui-sref="alias">
|
<a href="path">
|
<!-- comment -->
|
{/* comment */}
|
<someElement ng-if="condition">
|
{condition && (<someElement>)}
|
ng-repeat | |
ng-include | |
<section tr-boards="...">
|
<Board names="...">
|