Posts

Showing posts from June, 2025

Home Brew on MacOS

Image
https://brew.sh/ it gets installed in /opt/homebrew git goes in /usr/bin/git /user/< user >/.zprofile /user/< user >/anaconda3 use following commands to refresh ur terminal source ~/.zshrc https://www.anaconda.com/docs/getting-started/anaconda/install#mac-os-command-line-installer conda env create -f environment.yml this will create a full data science env this is called "solving environment" Mac Shortcuts command + space = spotlight search  Python Git Basics Support for password was removed on Aug 13, 2021 https://www.youtube.com/watch?v=ePCBuIQJAUc

React Basics : Components

Image
Components React components are built by combining components. React Component = HTML + CSS + JS  Advantages  Reusable building components Related code (html, css, js) lives together  separation of concerns : different components handle diff data & logic  (simplifies testing and building complex apps)   Local  npm install : intall packages from package.json  npm run dev : run code locally   index.html file simple points to index.jsx  \ the root element is rendered with App.    App is a component that is exported, and App.js has actual code Generally you do not render an <App> component like above (using legacy code) : above is only exception . Actually the "ReactDom" library does the rendering part.     JSX  is used to describe and create HTML elements in JS is not understood by browsers   React code needs to go through a build process that transforms JSX code (behind the scene) to c...