<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Munni </title>
    <description>The latest articles on DEV Community by Munni  (@munni2244).</description>
    <link>https://dev.to/munni2244</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F779039%2Fb8c952eb-28df-43a5-9c93-333a75d23b62.jpeg</url>
      <title>DEV Community: Munni </title>
      <link>https://dev.to/munni2244</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/munni2244"/>
    <language>en</language>
    <item>
      <title>Redux Tool-Kit</title>
      <dc:creator>Munni </dc:creator>
      <pubDate>Fri, 04 Mar 2022 13:13:47 +0000</pubDate>
      <link>https://dev.to/munni2244/redux-tool-kit-2ak1</link>
      <guid>https://dev.to/munni2244/redux-tool-kit-2ak1</guid>
      <description>&lt;h2&gt;
  
  
  Redux Toolkit
&lt;/h2&gt;

&lt;p&gt;Redux Toolkit exports several individual functions that you can use in your application, and adds dependencies on some other packages that are commonly used with Redux (like Reselect and Redux-Thunk). This lets you decide how to use these in your own application, whether it be a brand new project or updating a large existing app.&lt;/p&gt;

&lt;h2&gt;
  
  
  Store Setup
&lt;/h2&gt;

&lt;p&gt;Every Redux app needs to configure and create a Redux store. This usually involves several steps:&lt;/p&gt;

&lt;p&gt;• &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Importing or creating the root reducer function
-Setting up middleware, likely including at least one middleware to handle asynchronous logic&lt;/li&gt;
&lt;li&gt;Configuring the redux dev Extension. &lt;/li&gt;
&lt;li&gt;Possibly altering some of the logic based on whether the application is being built for development or production&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Store Setup With ConfigureStore
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Having an options object with "named" parameters, which can be easier to read&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Enabling the  Redux  DevTools  Extension automatically&lt;br&gt;
In addition configureStore  adds some middleware by default, each with a specific goal:&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Redux Thunk is the most commonly used middleware for working with both synchronous and async logic outside of components  &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;In development, middleware that check for common mistakes like mutating the state or using non-serializable values.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Creating Slice of state
&lt;/h2&gt;

&lt;p&gt;Redux state is typically organized into "slices", defined by the reducers that are passed to combineReducer:&lt;/p&gt;

&lt;p&gt;`Import {combine}&lt;br&gt;
import { combineReducers } from 'redux'&lt;br&gt;
import usersReducer from '&lt;br&gt;
import postsReducer from '&lt;/p&gt;

&lt;p&gt;const rootReducer = combineReducers({&lt;br&gt;
  users: usersReducer,&lt;br&gt;
  posts: postsReducer,&lt;br&gt;
})`&lt;/p&gt;

</description>
      <category>redux</category>
    </item>
    <item>
      <title>Redux Toolkit</title>
      <dc:creator>Munni </dc:creator>
      <pubDate>Fri, 25 Feb 2022 14:27:39 +0000</pubDate>
      <link>https://dev.to/munni2244/redux-toolkit-2ggh</link>
      <guid>https://dev.to/munni2244/redux-toolkit-2ggh</guid>
      <description>&lt;h2&gt;
  
  
  Redux
&lt;/h2&gt;

&lt;p&gt;Redux is an open-source JavaScript library for managing and centrailizing application state. It most commonly used with libraries such as react or anguler for building user interfaces.A popular state management library. Redux helps you write application that behave consisitently, run in different environment and are easy to test.&lt;/p&gt;

&lt;h2&gt;
  
  
  Redux Toolkit
&lt;/h2&gt;

&lt;p&gt;The Redux Toolkit package was developed to be the new standard way to write Redux code, handling some major concerns about Redux itself. One important thing to take away is that Redux Toolkit  provides us with powerful data fetching and caching capability. &lt;/p&gt;

&lt;p&gt;Using redux toolkit  was originally created to help address three mejor concerns about Redux:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Configuring a Redux store is too complicated.&lt;/li&gt;
&lt;li&gt;I have to add a lot of packages to get Redux to do anything 
useful.&lt;/li&gt;
&lt;li&gt;Redux requires too much boilerplate code.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;What’s include Redux Toolkit&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;configureStore()&lt;/strong&gt;  &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;It can automatically combine your slice reducers , adds whatever redux middleware you supply includes redux-thunk by default and enables use of the redux extention.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;createReducer()&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Reducer support directly mapping specific action types to case reducer function that will update the state when that actionnis dispatched.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;createAction()&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Redux Toolkit provides a function called createAction. Which simply generates action creator that uses the giveb action type , and turns its argument into the payload.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;createSlice()&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;createSlice is a higher order function that accepts an initial state, an object full reducer function and slice name. it automatically generates action creators and action types that corresponding the reducers and state.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;createSelector()&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;selectors typically expect the Redux state object as an argument , while slice reducers only have access to specific subset of the entire Redux state.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Installation
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Redux Toolkit Npm  An Existing app.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;npm  install @reduxjs/toolkit&lt;/p&gt;

</description>
      <category>redux</category>
      <category>reduxtoolkit</category>
    </item>
    <item>
      <title>Node JS</title>
      <dc:creator>Munni </dc:creator>
      <pubDate>Thu, 23 Dec 2021 15:11:39 +0000</pubDate>
      <link>https://dev.to/munni2244/node-m88</link>
      <guid>https://dev.to/munni2244/node-m88</guid>
      <description>&lt;h2&gt;
  
  
  JWT
&lt;/h2&gt;

&lt;p&gt;JWT  means  JSON Web Token. Its used to share secretly information between to parties  client and server.JWT use as a secure way to authentication share user information. JWT mechanism  to verify the owner of JSON.&lt;/p&gt;

&lt;h2&gt;
  
  
  How JWT  Token  Work?
&lt;/h2&gt;

&lt;p&gt;JWT token based authentication, and its  stateless. That means the user state is never saved in server memory but  the state is sorted inside the token .  JWT request to other parties.&lt;/p&gt;

&lt;p&gt;JWT have of 3 parts .&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt; Header&lt;/li&gt;
&lt;li&gt; Payload&lt;/li&gt;
&lt;li&gt; Signature &lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  JWT Look Likes
&lt;/h2&gt;

&lt;p&gt;Aaaaaaaaaa.bbbbbbbbbbbbb.cccccccccccc&lt;br&gt;
The first part is header and second part is payload and the last part is signature.&lt;/p&gt;

&lt;h2&gt;
  
  
  Mongoose
&lt;/h2&gt;

&lt;p&gt;Mongoose  is  a mongodb ODM (object database modeling). Mongoose is a way to make connection  mongodb database. It provide mongodb validation. Its very simple and  it make development first. And it includes  query , validation, and logic hook. &lt;/p&gt;

&lt;p&gt;It work in asynchronous  environment .&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Installation mongoose :&lt;/strong&gt; &lt;br&gt;
npm  install mongoose&lt;/p&gt;

&lt;h2&gt;
  
  
  CRUD Operation
&lt;/h2&gt;

&lt;p&gt;Crud  are the four basic operation its create , read, update, delete. The crud operation is refers  to the major operation which are implement by database. It can also describe the user interface  convention that allow searching , modifying  .&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Create&lt;/strong&gt; &lt;br&gt;
The create function allows to user record create in the database. The create function is called INSERT.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Read&lt;/strong&gt; &lt;br&gt;
The read function is search specific  function  and read there value.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Update&lt;/strong&gt;&lt;br&gt;
The update function is modify existing record that exist in database.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Delete&lt;/strong&gt;&lt;br&gt;
The delete function allows  user to remove record in the database.&lt;/p&gt;

&lt;h2&gt;
  
  
  Express of  Node JS
&lt;/h2&gt;

&lt;p&gt;Express js is a back end  web application framework for node js. It’s a free and open source .&lt;br&gt;
It designed for building web application and API.&lt;/p&gt;

&lt;p&gt;Following are some of the core feature   of express framework:&lt;br&gt;
• Respond  HTTP request&lt;br&gt;
• Allows the middleware&lt;br&gt;
• Allows to dynamically render to HTML pages.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Installation command :&lt;/strong&gt;&lt;br&gt;
npm  install  express&lt;/p&gt;

&lt;p&gt;Example:&lt;br&gt;
const  express= require(“express”);&lt;br&gt;
const  app = express();&lt;/p&gt;

</description>
      <category>jwt</category>
      <category>mongoose</category>
      <category>crud</category>
      <category>express</category>
    </item>
    <item>
      <title>React                            
React-Life-Cycle</title>
      <dc:creator>Munni </dc:creator>
      <pubDate>Wed, 22 Dec 2021 16:46:41 +0000</pubDate>
      <link>https://dev.to/munni2244/react-react-life-cycle-fg2</link>
      <guid>https://dev.to/munni2244/react-react-life-cycle-fg2</guid>
      <description>&lt;p&gt;``React  web app are actually  a collection of component. Every react component  has own lifecycle, that are different stage  of component extention.&lt;/p&gt;

&lt;p&gt;A react component has four stage of lifecycle. &lt;br&gt;
For example:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Initialization:&lt;/strong&gt; &lt;br&gt;
It’s  a starting point of  stage.Here the component start his journey.  This is the stage where the developer initial state and props .&lt;/p&gt;

&lt;p&gt;Its following method is bellow:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;getDefaultProps&lt;/strong&gt;()&lt;br&gt;
  its used to specify  the default value  of this.props.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;getInitialState() &lt;/strong&gt;&lt;br&gt;
its used to specify  the default value  of this.state.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Mounting&lt;/strong&gt;:&lt;br&gt;
Mounting phase is instance of component is created  and inserted into the dom. In this phase our  component render at the first time.  Mounting represent of the rendering component.&lt;/p&gt;

&lt;p&gt;The method is available phase is:&lt;/p&gt;

&lt;p&gt;**componentWillMount(); &lt;br&gt;
This function get invoked before the render function is executed for the first time.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;componentDidMount();&lt;/strong&gt;&lt;br&gt;
This function get invoked ones after  the render function is executed for the first time .&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Updating&lt;/strong&gt;:&lt;br&gt;
The next phase is Updating. A component is update , when there is a change props or state in the component. The phase is updating   some user event instruction.&lt;/p&gt;

&lt;p&gt;There are some available method in updating phase:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;setState&lt;/strong&gt;():&lt;br&gt;
This function is used to update the state of a component.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;shouldComponentUpdate():&lt;/strong&gt;&lt;br&gt;
This function is invoked before rendering  mounted component when new props or state being recieaved.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;componentWillUpdate():&lt;/strong&gt;&lt;br&gt;
This function is invoked before the component rendered.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;componentDidUpdate()&lt;/strong&gt;&lt;br&gt;
Similarly this  function is invoked after the component rendered and update props or state.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;UnMounting&lt;/strong&gt;&lt;br&gt;
This is the final stage of phase in react lifecycle. Where the component remove from the page.&lt;/p&gt;

&lt;p&gt;This Unmounting phase following the method is:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;componentWillUnMount&lt;/strong&gt;():&lt;br&gt;
The function get invoked before the remove component from the page. And its end of lifecyle.&lt;/p&gt;

&lt;p&gt;*&lt;em&gt;React JSX&lt;br&gt;
*&lt;/em&gt;&lt;br&gt;
JSX means  JavaScript Syntax Extension. Its  referred JavaScript as XML. JSX is a react extension to the JavaScript language. It produce react element. JSX allows to use  write  HTML directly  in JavaScript  react.&lt;/p&gt;

&lt;p&gt;Example:&lt;/p&gt;


&lt;p&gt;const  function=()=&amp;gt;{&lt;br&gt;&lt;br&gt;
return(&lt;br&gt;&lt;br&gt;
    # Header&lt;/p&gt;
&lt;h1&gt; Jsx&lt;/h1&gt;
&lt;br&gt;&lt;br&gt;
)&lt;br&gt;&lt;br&gt;
}

</description>
      <category>react</category>
    </item>
  </channel>
</rss>
