Posts

Showing posts from April, 2024

202-react alternatives

Links-React Alternatives https://www.solidjs.com/ https://qwik.dev / https://astro.build/ Links #1 - Introduction - React JS Tutorial for Beginners 2023 https://www.youtube.com/watch?v=zl2TtFO506s   https://github.com/sangammukherjee/25-Reactjs-Interview-Projects-Part-2/tree/master #2 - Hacking - react php-my question  https://www.reddit.com/r/react/comments/1by11z3/fear_of_the_dark_hackers/ #3 - 90+ React Projects with Source Code [2024] https://www.geeksforgeeks.org/reactjs-projects/?ref=shm #4 - 12. Simple Contact List https://contactmentor.com/best-react-projects-for-beginners-easy / #5 - react functions loop - google search search_loop https://intellipaat.com/blog/how-to-use-for-loop-in-react/ #6 - react-contact list - google search search_contact_list

002-React Menu - Router

source: https://www.geeksforgeeks.org/how-to-create-a-multi-page-website-using-react-js/ https://www.w3schools.com/react/react_router.asp https://github.com/damilolaolatunji/portfolio-spa/blob/master/src/App.js extra source:  good to know:  https://www.geeksforgeeks.org/reactjs-router/  1) src/App.jsx import React from 'react'; import ReactDOM from "react-dom/client"; import Navbar from "./components/Navbar/Navbar"; import {     BrowserRouter as Router,     Routes,     Route, } from "react-router-dom"; import About from "./pages/about"; import Blogs from "./pages/blogs"; import SignUp from "./pages/signup"; import Contact from "./pages/contact"; export default function App(){     return (         <Router>             <Navbar />             <Routes>                 <Route path="/about" element={...

101-various

  1 ) Import Export more than two entities: https://stackoverflow.com/questions/46039976/exporting-multiple-modules-in-react-js 1.1) in CarNs.jsx export function Garage.... export class CarN 1.2) in App.jsx import { CarNs, Garage } from './components/CarNs.jsx'; 1.3) Render multiple entities : class and function together in App.jsx : root.render( <> <CarNs color="red"/> <Garage /> </> ); 2/Other programming 2.1/embed JavaScript expressions Because of JSX, you can also embed JavaScript expressions inside an element by using curly brackets  {} : const lowercaseClass = 'text-lowercase'; const text = 'Hello World!'; const App = <h1 className= {lowercaseClass} > {text} </h1>; This is what makes React elements different from HTML elements. You can't embed JavaScript directly by using curly braces in HTML. 2.2/Fragment <> or   < Fragment >  The empty tag is a React feature called a  Fragment . By using a Fra...