<BestPractices />
Hva bør vi gjøre i 2018?
// todo
A best practice is a method or technique that has been generally accepted as superior to any alternatives because it produces results that are superior to those achieved by other means or because it has become a standard way of doing things, e.g., a standard way of complying with legal or ethical requirements.
Komponenter
Kode
Bygg og oppsett
Struktur
Funksjonelle vs klasse-baserte
Conditionals i JSX
Kompliserte vs enkle komponenter
CSS?
Hvilke ESNext features?
Typet vs ikke typet?
HOCs vs render-props vs functional children?
Testing
Webpack vs Rollup vs Parcel
create-react-app vs roll your own
Linting og formattering
Hvor plassere hva?
Co-located tests?
Hvor store / små skal komponenter være?
Smart vs dumb components