React Migration Cheatsheet: Difference between revisions

[[Wiki.trustroots.org]] is an independent wiki with information for people who are actively exchanging hospitality.
No edit summary
No edit summary
 
Line 28: Line 28:
|<code><Board names="..."></code>
|<code><Board names="..."></code>
|}
|}
[[Category:Tech]]

Latest revision as of 17:30, 28 October 2022

Angular React
someString import { useTranslation } from 'react-i18next';
const { t } = useTranslation('modulename');
{t('someString')}
<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="...">