<?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: Joy Dey</title>
    <description>The latest articles on DEV Community by Joy Dey (@joydey100).</description>
    <link>https://dev.to/joydey100</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%2F778324%2F02d4bcb9-4ff6-4b63-a913-02ab271efde5.jpeg</url>
      <title>DEV Community: Joy Dey</title>
      <link>https://dev.to/joydey100</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/joydey100"/>
    <language>en</language>
    <item>
      <title>CRUD</title>
      <dc:creator>Joy Dey</dc:creator>
      <pubDate>Wed, 22 Dec 2021 17:16:58 +0000</pubDate>
      <link>https://dev.to/joydey100/crud-577j</link>
      <guid>https://dev.to/joydey100/crud-577j</guid>
      <description>&lt;p&gt;CRUD is a short form of Create, Read, Update and Delete. These are the basic operations to perform with the database system. To interact with a database, we used crud operations. CRUD is used for anything related to databases and database systems. Software, Web Development can not be imagined without these operations nowadays. The CRUD also appears in the discussion of REST APIs. In HTTP, the GET, PUT and DELETE methods are crud operations as they can manipulate the states of target resources. For Database, we are showing this operation with MongoDB, which is a NoSQL database system. &lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;Create Operation&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;Create or insert operations add new documents to a collection. If the collection does not exist, insert operations will create a new collection in the database.&lt;br&gt;
MongoDB provides some methods to insert data in the database&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;db.collection.insertOne() New in version 3.2
db.collection.insertMany() New in version 3.2
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  &lt;strong&gt;Read Operation&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;Read operations retrieve data from the collection of databases. The query is a collection of documents. &lt;br&gt;
There are some methods that we can use to read or find the data from the database&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;db.collection.find()
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  &lt;strong&gt;Update Operation&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;Update operations updates or modify existing data from the data collections. We use some update methods to update or modify data the content in the database.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;db.collection.updateOne() New in version 3.2
db.collection.updateMany() New in version 3.2
db.collection.replaceOne() New in version 3.2
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  &lt;strong&gt;Delete Operation&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;Delete operations remove or delete data from the data collections. The methods of delete operation in nosql are -&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;db.collection.deleteOne() New in version 3.2
db.collection.deleteMany() New in version 3.2
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
    </item>
    <item>
      <title>React Life Cycle - Mounting </title>
      <dc:creator>Joy Dey</dc:creator>
      <pubDate>Tue, 21 Dec 2021 17:23:26 +0000</pubDate>
      <link>https://dev.to/joydey100/react-life-cycle-mounting-6n5</link>
      <guid>https://dev.to/joydey100/react-life-cycle-mounting-6n5</guid>
      <description>&lt;p&gt;React a lifecycle is an event that is used to operate components throughout the duration of the Document Object Model. It has mainly three phases - &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Mounting&lt;/strong&gt; - It means putting elements on the dom.&lt;br&gt;
&lt;strong&gt;Updating&lt;/strong&gt; - Whenever the components state and props are changed, the component updated&lt;br&gt;
&lt;strong&gt;Unmounting&lt;/strong&gt; - When a component is removed from the dom, then this lifecycle method happens&lt;/p&gt;

&lt;p&gt;Today we are discussing the mounting phase.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Mounting&lt;/strong&gt;&lt;br&gt;
In mounting, there are some built-in methods called. they are-&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1. constructor()&lt;/strong&gt; - when the component is initiated, The constructor method is called before anything else. In this method, props are passed as an argument. To inherit methods from its parent, we should call super(props) before anything else.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;class Header extends React.Component {
  constructor(props) {
    super(props);
    this.state = {favoritecolor: "red"};
  }
  render() {
    return (
      &amp;lt;h1&amp;gt;My Favorite Color is {this.state.favoritecolor}&amp;lt;/h1&amp;gt;
    );
  }
}

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;2. render()&lt;/strong&gt;- render method outputs the HTML to the Browser DOM.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;class Header extends React.Component {
  render() {
    return (
      &amp;lt;h1&amp;gt;This is the content of the Header component&amp;lt;/h1&amp;gt;
    );
  }
}

ReactDOM.render(&amp;lt;Header /&amp;gt;, document.getElementById('root'));
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;3. componentDidMount()&lt;/strong&gt; - The componentDidMount method is called after the component is rendered.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;class Header extends React.Component {
  constructor(props) {
    super(props);
    this.state = {favoritecolor: "red"};
  }
  componentDidMount() {
    setTimeout(() =&amp;gt; {
      this.setState({favoritecolor: "yellow"})
    }, 1000)
  }
  render() {
    return (
      &amp;lt;h1&amp;gt;My Favorite Color is {this.state.favoritecolor}&amp;lt;/h1&amp;gt;
    );
  }
}

ReactDOM.render(&amp;lt;Header /&amp;gt;, document.getElementById('root'));
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



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