React Migration Cheatsheet

[[Wiki.trustroots.org]] is an independent wiki with information for people who are actively exchanging hospitality.
Revision as of 09:06, 15 April 2020 by Rumwerfer (talk | contribs)
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="...">