Sunsetting Create React App

Sunsetting Create React App – React I’m glad they finally “officially” deprecated it since it hasn’t been the greatest choice for a while now… Like the docs now recommend, Vite is a much better choice. You can run npm create vite@latest to get a starting point very similar to CRA but much faster and with less bloat. The only thing I wish it included was tests setup but this post does a good job showing how to do that: Simple React and Vite setup with unit testing ...

Comment styles in React

I recently learned that there are actually several ways to add comments in JSX in React. I had known about the {/* comment */} syntax but realize you could use // within a jsx element: function MyComponent() { return ( <div> <Hello message="Hello, World!" // message prop requires a string /> </div> ) }