Posts

Showing posts from November, 2022

React css

 https://dev.to/salehmubashar/3-ways-to-add-css-in-react-js-336f

node 2

in package.json:    "type" : "module" now u can use the statement:--- import   os   from   'os' ; console . log ( os . platform ()); os:--- arch() cpus() hostname() networkinterface() freemem():---bytes totalmem()

node1

 for mangaging dependencies we create package.json:npm init -y package.json: "scripts" : {      "start" : "nodemon app.js" , const   express = require ( 'express' ); const   app = express (); //app variable hold //the reference of the express.. //3route:---express run on middleware system //like use...//move to the next[] app . use ( "/" ,( req , res , next ) => { res . send ( "hello world" ); }) app . listen ( 5000 ,() => {      console . log ( "connected with the port 5000" ); }); //server with the port

react paginate

important:-  jsonplaceholder.typicode.com/posts?_page-1&_limit=2

react native 2

 https://reactnative.dev/docs/pressable Navigating Between Screens · React Native javascript - How to use zIndex in react-native - Stack Overflow https://www.youtube.com/watch?v=2ouN6xeF6Hk&list=PL8kfZyp--gEXs4YsSLtB3KqDtdOFHMjWZ&index=20

react native1

  javascript - Deprecation notice: ReactDOM.render is no longer supported in React 18 - Stack Overflow react native - Cannot find entry file index.js with Expo XDE - Stack Overflow ............................................................ important:--- https://stackoverflow.com/questions/43593042/network-response-time-out-error-create-react-native-app-expo to run command is:-- expo start --web expo start --tunnel expo start --tunnel//gaurav is running ................................................................................... node_modules>expo>appEntry.js:--- import   registerRootComponent   from   'expo/build/launch/registerRootComponent' ; import  {  StrictMode  }  from   "react" ; import  {  createRoot  }  from   "react-dom/client" ; import   App   from   '../../App' ; //registerRootComponent(App); const   rootElement  =  document . getElementById ( "root" ); const ...