Author: pawan
-
NextJs App Routing
The App routing is a new feature in NextJs version 13 onwards.for creating routes using app routing These are the steps.
-
Using multiple Node version
Installing NVM on Windows If you’re using Windows, you’ll need to use “nvm-windows,” a version of NVM specifically for Windows. Installing Node.js Version 18 After installing NVM, you can install Node.js version 18: for Installing nvm in ubnutu or linux use below command
-
what is vite or vite.js
Vite is a JS Bundler like webpack. But is more efficient and faster as having less dependencies. To install vite in an existing project use command
-
WordPress – wp_register_style
The below function is used to include or register stylesheets, which takes various parameter. There are other parameters as well. Hooks are registered in functions.php file https://developer.wordpress.org/reference/functions/wp_register_style/ Note: The styles are registered using a add_action hook Example: Example Note: wp_register_style only registers the style, but it doesn’t actually load the file.To Load the file must…
-
WordPress get_theme_file_path
The above function get_them_file_path includes the absolute path of the theme in which you are including the file that is includes folder and then front folder.
-
Redux Toolkit
Redux Toolkit is the wrapper around redux for using in React. Toolkit makes it easier to use redux in React. The steps to use the redux tool kit is as follows. step1 install react-redux and redux toolkit Step2 – create a folder as store and then you can add pages as slice. example add a…
-
React Boiler plate component
In a new file if you start typing “rafce” the autocomplete should you option to select react componet, selecting which should insert the boiler plate code in the file