Fetching data for a website is a common use case so it's a good example for exploring the different ways we can reuse common functionality in a React app, and this article covers using Higher Order Components.
When returning JSX from a React component you may wish to return output depending on the condition of the value of some variable.
Here's how you can conditionally render JSX inline in a React component...
Much like myself and my shattered family relations, React doesn’t like siblings. More specifically, it doesn’t allow siblings in a return function while rendering.
As of React v16.2.0 you can use React.Fragment to wrap the sibling elements.