These are a collection of tips and tricks you can use to improve the performance and readability of your code.
To improve the readability of React components, we can import the styled-components they use from another file under a ui-namespace.
This is how libraries like Tailwind CSS can use prefixes like `hover:` and `focus:` to apply styles to pseudo classes.
When chaining conditions together, putting them into named variables makes code more readable.
When naming variables that hold Boolean values, using a prefix that indicates as much helps with readability.
We can create a sequence of numbers by spreading the keys of one array into another array. We can then change that range any way we like.
We can skip the return keyword if arrow functions immediately return a value. If that value is an object, we need to also wrap it in parentheses.
We can write a single function that reads the global theme instead of doing the same thing for multiple properties.
When using styled-components in React, we can use destructuring to make our components more readable.