React component code smells | anton gunnarsson

react
react

? This post is still growing and will likely be updated.A growing collection of things I consider code smells in React components. What’s a code smell? In short, something that could indicate a deeper problem within a code base. (Wikipedia) The smells ?Too many propsIncompatible propsCopying props into stateReturning JSX from functionsMultiple booleans for stateToo many useState in a componentLa

コメント一覧


yug12242020/11/14
こいつはくせえッー!プンプンするぜッー!

burnworks2020/11/13
これ所謂日本での「やはりおまえらの○○は間違っている」ってやつか

congonhas2020/11/13
『お前らのReactは臭い』