Micro frontend (2) – How to share redux state?
Method 1 Use 1 global shared store between micro frontends Use injectReducer to register each micro frontend reducer into the that store Reference redux-reducer-injection Method […]
Method 1 Use 1 global shared store between micro frontends Use injectReducer to register each micro frontend reducer into the that store Reference redux-reducer-injection Method […]
How to install & configure Add devtools By default, React Query Devtools are not included in production bundles when process.env.NODE_ENV === ‘production’, so you don’t need […]
Method 1 First thing first Number 1 You can develop an independent component in a separate folder and expose it out using ModuleFederationPlugin State configuration […]
tailwind-cheat-sheet Setup 1 Install taiwind css package Create configuration file Install postcss & autoprefixer & postcss-import Create configuration file “postcss.config.js” Configure Webpack for css file […]
Redux – Basic Redux creates a global state which you can share between React components—no parent / child relationship required When using Redux, you don’t actually […]
What can Webpack do? Bundle multiple js files into 1 js file with correct js file order Bundle multiple css, images,… files into 1 js […]
How to use typescript in class? What is the difference between ts and tsx files? ts file doesn’t include jsx codes tsx file include jsx […]
Coding Keep components simple Create components as minimal as possible, few lines of code each, to avoid enormous states Separate side effects, business logic from […]
Redux Thunk actions.js reducers.js
Suspense fetch-on-render Start fetching user details Wait… Finish fetching user details Start fetching posts Wait… Finish fetching posts fetch-then-render Start fetching user details Start fetching […]
Copyright © 2024 | WordPress Theme by MH Themes