21 Best Practices for a Clean React Project. Practical advice for improving code quality. ... Use JSX ShortHand. Try to use JSX shorthand for passing boolean variables. ... Use Ternary Operators. ... Take Advantage of Object Literals. ... Use Fragments. ... Don't Define a Function Inside Render. ... Use Memo. ... Put CSS in JavaScript. More items...