Notes: First Steps with React
First Steps with React
by Mike Mathews - Nov. 14, 2023
Event: ReactJs Dallas ( https://www.meetup.com/reactjsdallas/ )
Speaker: Mike Mathews
Date: Nov. 14, 2023
I was amazed that Mike did the talk with no outline. As an expert, he just knew React so well that it did not bother him to wing it.
Overall, Mike was suggesting to NOT use the older commands since they were created nine years ago and have not been extended. These older commands are:
npm create-react-app myAppName
npm create-react-component myComponentName
His suggestions to create a React application were: 1) Next.js, 2) Remix, 3) Gatsby (CMS) (that he used), 4) and Expo (for React Native apps).
Also, Mike talked about in general terms the challenges of getting the environment setup such as the npm or npx.
Not in Talk
Overall the talk brought up a lot of libraries I needed to research further.
Gatsby ( gatsbyjs.com ) is a static site generator that leverages React. Static websites are the original website: just HTML, CSS, and JavaScript. They are not rendered during runtime; there is no server-side code, no database, etc. To boost performance, Gatsby loads only critical HTML, CSS, JavaScript, and other data. Once loaded, it prefetches resources for other pages you might navigate to. Gatsby uses GraphQL to manage data. In August 2023, Gatsby and Netlify merged. Gatsbyhas a createPage command that one would use.
Remix ( remix.run ) has only one way to pull data: loader. Remix focuses on nested routes and dynamic pages. Remix can prefetch any page because there was no architectural divergence for data loading. Since Remix uses HTML's link prefetching so the browser does the work rather than Remix. Remix does the creation via
npx remix build
or
npx create-remix@latest --template remix-run/remix/templates/remix-tutorial
Vite - It is interesting that Mike did not mention Vite. ViteJs (pronouced Veet) I have seen recommended: "I prefer vite (and this is what the React document currently recommends), because it's faster for development and easier to configure." Source: https://www.freecodecamp.org/news/usestate-vs-redux-state-management/ .
Comments
Post a Comment