Frontend library The hottest right now, most likely topmost among Angular, Vue etc
A lot of jobs out there Widely used, and appreciated, and support is available Web3 frontend is mostly React (and yes NextJS as well) Even, if you dont go for web3, it is itself enough to get a job as a frontend developer
- HTML
- CSS
- JS-Basic and advanced JS like ES6+ including arrow functions, map/reduce/filter, promises, async await, .then/.catch, rest/spread, etc
You need to install NodeJS, which will be used to run the React application
Run npx create-react-app firstreactapp
cd into the directory
and run npm start
package.json package-lock.json .git .gitignore node_modules public
Understanding index.html, our application mounts at root
Git is auto setup.
Few files and folders wont be pushed on Github
- It is a function: rafc, rafce, rfc, rfce
- Html vs JSX (because we have brackets {} to add JS)
- Importing React is optional in React 18
- Must return only one element
- camelCase (classname , onClick nd everything else)
- React.Fragment or <></>
- Composite pattern: can use component within a component, nest components (will be covered in props children) etc
- Reusability of components (will see power after learnign props)
- Old way: Class vs Functional components (an application can contain both type of compoents at the same time)
- Auto close tag
- Auto rename tag
- ES7, React snippets (rafc, rfc, rfc, rfce)
- Prettier (make sure format on save is ticked and default formatter is set to Prettier)
React debugger
- importing css file
- adding classNames
- inline styling: adding styles in double brackets {{...}} or object in single bracket
- everything is camelCase and stringified