<?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: Md Tanber</title>
    <description>The latest articles on DEV Community by Md Tanber (@strtanberahmed).</description>
    <link>https://dev.to/strtanberahmed</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%2F847528%2Fc85ededb-5839-4dd6-9117-b7ce43455e34.jpeg</url>
      <title>DEV Community: Md Tanber</title>
      <link>https://dev.to/strtanberahmed</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/strtanberahmed"/>
    <language>en</language>
    <item>
      <title>Let's Explore React</title>
      <dc:creator>Md Tanber</dc:creator>
      <pubDate>Thu, 23 Jun 2022 10:01:57 +0000</pubDate>
      <link>https://dev.to/strtanberahmed/lets-explore-react-56l1</link>
      <guid>https://dev.to/strtanberahmed/lets-explore-react-56l1</guid>
      <description>&lt;p&gt;First of all React is one of the best javascript framework. It gives the best-rendering performance, clean code, rich user interface, etc. React build single-page applications. Now lets learn some react topics.&lt;/p&gt;

&lt;p&gt;PropTypes: propTypes means in the component we can write what type of props is this. As a data type is a string, number, boolean, or anything we can pass these props types.&lt;/p&gt;

&lt;p&gt;What is the difference between State-props:&lt;br&gt;
Props only send the value. It is read-only. can not change the value by props. And we can send anything like hardcoded value, dynamic value, object, function.&lt;/p&gt;

&lt;p&gt;State&lt;br&gt;
Props&lt;br&gt;
State can get initial value from parent component&lt;br&gt;
Props also can get initial values from the parent component.&lt;br&gt;
State can not change by parent component&lt;br&gt;
Props can be changed by parent component&lt;br&gt;
State can set default value in the component.&lt;br&gt;
Props also can set default values in components.&lt;br&gt;
State cab change inside the component&lt;br&gt;
Props can not be changed inside component.&lt;br&gt;
State can not be changed in child component&lt;br&gt;
Props can be changed in the child component.&lt;/p&gt;

&lt;p&gt;Explain the Component Lifecycle.&lt;/p&gt;

&lt;p&gt;=&amp;gt; Lifecycle method happened three ways&lt;br&gt;
Mounting: In mounting, we maintain some order. These are&lt;br&gt;
contractor()&lt;br&gt;
Static getDerivedStateFromPorps()&lt;br&gt;
render()&lt;br&gt;
componentDivMount()&lt;/p&gt;

&lt;p&gt;Updating: In updating also maintain some orders. there are&lt;br&gt;
Static getDerivedStateFromPorps()&lt;br&gt;
shouldComponentUpdate()&lt;br&gt;
render()&lt;br&gt;
getSnapshotBeforeUpdate()&lt;br&gt;
componentDivUpdate()&lt;/p&gt;

&lt;p&gt;Unmounting: when the component deletes from the DOM. Then it is called&lt;br&gt;
componentWllUnmount()&lt;/p&gt;

&lt;p&gt;What is hooks in react? Hooks is create a connection with our application to react. We use some hooks: useState: this hook is used to update any value. if anything changes or needs to update In the application useState hooks can update this. useEffect: by this hook, we can load data or fetch data in UI. it’s also like an impure function.if Loaded data is not loaded from the server it can not be rendered.&lt;br&gt;
There are more hooks like this that are building a connection with code and rendering in UI.&lt;/p&gt;

&lt;p&gt;Virtual DOM and diffing- algorithm? Virtual DOM: virtual DOM is most like real DOM.in real DOM we trigger any element by methods like getElementById or getElementByClassName and then change the code. Sometimes if needed to change somewhere then all structures should be changed this was very time-consuming and most difficult. But now VIrtual DOM is made our life easier. In virtual DOM initially set a DOM. when we change code then automatically create a new DOM and compare the previous DOM and then update the DOM.this this is created a Tree which is rendered from the root and his parent is app.js. All component is stored in app.js and finally rendered in UI by root. This tree most looks like real DOM. All processes are happened by diff algorithms. It means when anything changes in code then it is compared with virtual DOM and then they create a Diff algorithm. and then reference change or update in UI.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>#mongoose #blog</title>
      <dc:creator>Md Tanber</dc:creator>
      <pubDate>Fri, 15 Apr 2022 12:09:16 +0000</pubDate>
      <link>https://dev.to/strtanberahmed/mongoose-blog-26d1</link>
      <guid>https://dev.to/strtanberahmed/mongoose-blog-26d1</guid>
      <description>&lt;p&gt;Mongoose is a Node. js-based Object Data Modelling (ODM) library for MongoDB. Currently, I am learning mongoose because I found some advantages in it. The Mongoose module is one of the most powerful external modules of NodeJS. Mongoose is used to translate the code and its representation from MongoDB to the Node.js server. Collection validation of the MongoDB database can be done easily. In mongoose, a predefined Structure can be&lt;br&gt;
implemented on the collection. Constraints can be applied to documents of collections using Mongoose. Mongoose module built on the top of MongoDB driver and provides an easy abstraction of the query and defines a query. The Mongoose module provides several functions in order to manipulate the documents of the collection of the MongoDB database.&lt;br&gt;
These are the reasons why I’m learning Mongoose for databases. We can use Mongoose for our team project. Because MongoDB allows us to add our team members via invitation. Which we can find in our MongoDB profile and by accepting that each team member can use the database. There are different kinds of roles.&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
