Posts tagged "react"

Next.js: Use Server-Side Rendering in your React App // Part 1

Usually, we are completely running React.js on client-side: Javascript is interpreted by your browser. The initial html returned by the server contains a placeholder, e.g. <div id=”root”></div>, and then, once all your scripts are loaded, the entire UI is rendered in the browser. We call it client-side rendering. The problem is that, in the meantime, your… Continue reading

How to write the perfect React component (a Theodo standard)

What is the perfect React component? The component should have one purpose only, rendering The component should be small and easily understandable The component should rerender only if needed How to create the perfect React component? Logic Functions Atomic Design Selectors and Reselectors Functions inside render Logic Functions Export your logic functions to an external… Continue reading