<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xmlns:tt="http://teletype.in/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:media="http://search.yahoo.com/mrss/"><channel><title>Open collections</title><generator>teletype.in</generator><description><![CDATA[Open collections]]></description><image><url>https://teletype.in/files/49/a3/49a3360a-2f6a-46cd-90a9-f9db1b18c877.jpeg</url><title>Open collections</title><link>https://teletype.in/@open_collections</link></image><link>https://teletype.in/@open_collections?utm_source=teletype&amp;utm_medium=feed_rss&amp;utm_campaign=open_collections</link><atom:link rel="self" type="application/rss+xml" href="https://teletype.in/rss/open_collections?offset=0"></atom:link><atom:link rel="next" type="application/rss+xml" href="https://teletype.in/rss/open_collections?offset=10"></atom:link><atom:link rel="search" type="application/opensearchdescription+xml" title="Teletype" href="https://teletype.in/opensearch.xml"></atom:link><pubDate>Wed, 15 Apr 2026 17:16:36 GMT</pubDate><lastBuildDate>Wed, 15 Apr 2026 17:16:36 GMT</lastBuildDate><item><guid isPermaLink="true">https://teletype.in/@open_collections/HXqprLoRA</guid><link>https://teletype.in/@open_collections/HXqprLoRA?utm_source=teletype&amp;utm_medium=feed_rss&amp;utm_campaign=open_collections</link><comments>https://teletype.in/@open_collections/HXqprLoRA?utm_source=teletype&amp;utm_medium=feed_rss&amp;utm_campaign=open_collections#comments</comments><dc:creator>open_collections</dc:creator><title>What is ReactDOMServer?</title><pubDate>Tue, 23 Jun 2020 21:45:59 GMT</pubDate><description><![CDATA[<img src="https://telegra.ph/file/b09f3e62e40a4900872ad.png"></img>The ReactDOMServer object enables you to render components to static markup (typically used on node server). This object is mainly used for server-side rendering (SSR). The following methods can be used in both the server and browser environments:]]></description><content:encoded><![CDATA[
  <p>The <code>ReactDOMServer</code> object enables you to render components to static markup (typically used on node server). This object is mainly used for <em>server-side rendering</em> (SSR). The following methods can be used in both the server and browser environments:</p>
  <ol>
    <li><code>renderToString()</code></li>
    <li><code>renderToStaticMarkup()</code></li>
  </ol>
  <p>For example, you generally run a Node-based web server like Express, Hapi, or Koa, and you call <code>renderToString</code> to render your root component to a string, which you then send as response.</p>
  <figure class="m_original">
    <img src="https://telegra.ph/file/b09f3e62e40a4900872ad.png" width="714" />
  </figure>

]]></content:encoded></item><item><guid isPermaLink="true">https://teletype.in/@open_collections/w3qHWTdN4</guid><link>https://teletype.in/@open_collections/w3qHWTdN4?utm_source=teletype&amp;utm_medium=feed_rss&amp;utm_campaign=open_collections</link><comments>https://teletype.in/@open_collections/w3qHWTdN4?utm_source=teletype&amp;utm_medium=feed_rss&amp;utm_campaign=open_collections#comments</comments><dc:creator>open_collections</dc:creator><title>What is the purpose of render method of react-dom?</title><pubDate>Tue, 23 Jun 2020 21:44:26 GMT</pubDate><description><![CDATA[<img src="https://telegra.ph/file/deaa43e8e161460d07fca.png"></img>This method is used to render a React element into the DOM in the supplied container and return a reference to the component. If the React element was previously rendered into container, it will perform an update on it and only mutate the DOM as necessary to reflect the latest changes.]]></description><content:encoded><![CDATA[
  <p>This method is used to render a React element into the DOM in the supplied container and return a reference to the component. If the React element was previously rendered into container, it will perform an update on it and only mutate the DOM as necessary to reflect the latest changes.</p>
  <figure class="m_original">
    <img src="https://telegra.ph/file/deaa43e8e161460d07fca.png" width="689" />
  </figure>
  <p>If the optional callback is provided, it will be executed after the component is rendered or updated.</p>

]]></content:encoded></item><item><guid isPermaLink="true">https://teletype.in/@open_collections/sNEX5qTxf</guid><link>https://teletype.in/@open_collections/sNEX5qTxf?utm_source=teletype&amp;utm_medium=feed_rss&amp;utm_campaign=open_collections</link><comments>https://teletype.in/@open_collections/sNEX5qTxf?utm_source=teletype&amp;utm_medium=feed_rss&amp;utm_campaign=open_collections#comments</comments><dc:creator>open_collections</dc:creator><title>What is the use of react-dom package?</title><pubDate>Tue, 23 Jun 2020 21:42:09 GMT</pubDate><description><![CDATA[The react-dom package provides DOM-specific methods that can be used at the top level of your app. Most of the components are not required to use this module. Some of the methods of this package are:]]></description><content:encoded><![CDATA[
  <p>The <code>react-dom</code> package provides <em>DOM-specific methods</em> that can be used at the top level of your app. Most of the components are not required to use this module. Some of the methods of this package are:</p>
  <ol>
    <li><code>render()</code></li>
    <li><code>hydrate()</code></li>
    <li><code>unmountComponentAtNode()</code></li>
    <li><code>findDOMNode()</code></li>
    <li><code>createPortal()</code></li>
  </ol>

]]></content:encoded></item><item><guid isPermaLink="true">https://teletype.in/@open_collections/1LEMR0gV6</guid><link>https://teletype.in/@open_collections/1LEMR0gV6?utm_source=teletype&amp;utm_medium=feed_rss&amp;utm_campaign=open_collections</link><comments>https://teletype.in/@open_collections/1LEMR0gV6?utm_source=teletype&amp;utm_medium=feed_rss&amp;utm_campaign=open_collections#comments</comments><dc:creator>open_collections</dc:creator><title>What are the recommended ways for static type checking?</title><pubDate>Tue, 23 Jun 2020 21:41:04 GMT</pubDate><description><![CDATA[Normally we use PropTypes library (React.PropTypes moved to a prop-types package since React v15.5) for type checking in the React applications. For large code bases, it is recommended to use static type checkers such as Flow or TypeScript, that perform type checking at compile time and provide auto-completion features.]]></description><content:encoded><![CDATA[
  <p>Normally we use <em>PropTypes library</em> (<code>React.PropTypes</code> moved to a <code>prop-types</code> package since React v15.5) for <em>type checking</em> in the React applications. For large code bases, it is recommended to use <em>static type checkers</em> such as Flow or TypeScript, that perform type checking at compile time and provide auto-completion features.</p>

]]></content:encoded></item><item><guid isPermaLink="true">https://teletype.in/@open_collections/5iiGV1GuL</guid><link>https://teletype.in/@open_collections/5iiGV1GuL?utm_source=teletype&amp;utm_medium=feed_rss&amp;utm_campaign=open_collections</link><comments>https://teletype.in/@open_collections/5iiGV1GuL?utm_source=teletype&amp;utm_medium=feed_rss&amp;utm_campaign=open_collections#comments</comments><dc:creator>open_collections</dc:creator><title>How error boundaries handled in React v15?</title><pubDate>Tue, 23 Jun 2020 21:39:29 GMT</pubDate><description><![CDATA[React v15 provided very basic support for error boundaries using unstable_handleError method. It has been renamed to componentDidCatch in React v16.]]></description><content:encoded><![CDATA[
  <p>React v15 provided very basic support for <em>error boundaries</em> using <code>unstable_handleError</code> method. It has been renamed to <code>componentDidCatch</code> in React v16.</p>

]]></content:encoded></item><item><guid isPermaLink="true">https://teletype.in/@open_collections/MEHrtv_XB</guid><link>https://teletype.in/@open_collections/MEHrtv_XB?utm_source=teletype&amp;utm_medium=feed_rss&amp;utm_campaign=open_collections</link><comments>https://teletype.in/@open_collections/MEHrtv_XB?utm_source=teletype&amp;utm_medium=feed_rss&amp;utm_campaign=open_collections#comments</comments><dc:creator>open_collections</dc:creator><title>What are error boundaries in React v16?</title><pubDate>Tue, 23 Jun 2020 21:38:02 GMT</pubDate><media:content medium="image" url="https://teletype.in/files/87/9f/879f4713-2ec4-42cf-97a2-692b685c8098.png"></media:content><description><![CDATA[<img src="https://telegra.ph/file/a91a7504b1e810a457e98.png"></img>Error boundaries are components that catch JavaScript errors anywhere in their child component tree, log those errors, and display a fallback UI instead of the component tree that crashed.]]></description><content:encoded><![CDATA[
  <p><em>Error boundaries</em> are components that catch JavaScript errors anywhere in their child component tree, log those errors, and display a fallback UI instead of the component tree that crashed.</p>
  <p>A class component becomes an error boundary if it defines a new lifecycle method called <code>componentDidCatch(error, info)</code> or <code>static getDerivedStateFromError() </code>:</p>
  <figure class="m_original">
    <img src="https://telegra.ph/file/a91a7504b1e810a457e98.png" width="713" />
  </figure>
  <p>After that use it as a regular component:</p>
  <figure class="m_original">
    <img src="https://telegra.ph/file/cd20048e54231d5d82c3d.png" width="728" />
  </figure>

]]></content:encoded></item><item><guid isPermaLink="true">https://teletype.in/@open_collections/nrs1EIYPJ</guid><link>https://teletype.in/@open_collections/nrs1EIYPJ?utm_source=teletype&amp;utm_medium=feed_rss&amp;utm_campaign=open_collections</link><comments>https://teletype.in/@open_collections/nrs1EIYPJ?utm_source=teletype&amp;utm_medium=feed_rss&amp;utm_campaign=open_collections#comments</comments><dc:creator>open_collections</dc:creator><title>What are the advantages of React?</title><pubDate>Tue, 23 Jun 2020 21:22:07 GMT</pubDate><description><![CDATA[Increases the application's performance with Virtual DOM.]]></description><content:encoded><![CDATA[
  <p>Increases the application&#x27;s performance with <em>Virtual DOM</em>.</p>
  <p>JSX makes code easy to read and write.</p>
  <p>It renders both on client and server side (<em>SSR</em>).</p>
  <p>Easy to integrate with frameworks (Angular, Backbone) since it is only a view library.</p>
  <p>Easy to write unit and integration tests with tools such as Jest.</p>

]]></content:encoded></item><item><guid isPermaLink="true">https://teletype.in/@open_collections/0o8z9nw6n</guid><link>https://teletype.in/@open_collections/0o8z9nw6n?utm_source=teletype&amp;utm_medium=feed_rss&amp;utm_campaign=open_collections</link><comments>https://teletype.in/@open_collections/0o8z9nw6n?utm_source=teletype&amp;utm_medium=feed_rss&amp;utm_campaign=open_collections#comments</comments><dc:creator>open_collections</dc:creator><title>What are the limitations of React?</title><pubDate>Tue, 23 Jun 2020 21:17:29 GMT</pubDate><description><![CDATA[React is just a view library, not a full framework.]]></description><content:encoded><![CDATA[
  <p>React is just a view library, not a full framework.</p>
  <p>There is a learning curve for beginners who are new to web development.</p>
  <p>Integrating React into a traditional MVC framework requires some additional configuration.</p>
  <p>The code complexity increases with inline templating and JSX.</p>
  <p>Too many smaller components leading to over engineering or boilerplate.</p>

]]></content:encoded></item><item><guid isPermaLink="true">https://teletype.in/@open_collections/PDjrLp0O0</guid><link>https://teletype.in/@open_collections/PDjrLp0O0?utm_source=teletype&amp;utm_medium=feed_rss&amp;utm_campaign=open_collections</link><comments>https://teletype.in/@open_collections/PDjrLp0O0?utm_source=teletype&amp;utm_medium=feed_rss&amp;utm_campaign=open_collections#comments</comments><dc:creator>open_collections</dc:creator><title>How to apply validation on props in React?</title><pubDate>Tue, 23 Jun 2020 21:10:42 GMT</pubDate><description><![CDATA[<img src="https://telegra.ph/file/abb4844d85deea26666dd.png"></img>When the application is running in development mode, React will automatically check all props that we set on components to make sure they have correct type. If the type is incorrect, React will generate warning messages in the console. It's disabled in production mode due to performance impact. The mandatory props are defined with isRequired.]]></description><content:encoded><![CDATA[
  <p>When the application is running in <em>development mode</em>, React will automatically check all props that we set on components to make sure they have <em>correct type</em>. If the type is incorrect, React will generate warning messages in the console. It&#x27;s disabled in <em>production mode</em> due to performance impact. The mandatory props are defined with <code>isRequired</code>.</p>
  <p>The set of predefined prop types:</p>
  <ol>
    <li><code>PropTypes.number</code></li>
    <li><code>PropTypes.string</code></li>
    <li><code>PropTypes.array</code></li>
    <li><code>PropTypes.object</code></li>
    <li><code>PropTypes.func</code></li>
    <li><code>PropTypes.node</code></li>
    <li><code>PropTypes.element</code></li>
    <li><code>PropTypes.bool</code></li>
    <li><code>PropTypes.symbol</code></li>
    <li><code>PropTypes.any</code></li>
  </ol>
  <p>We can define <code>propTypes</code> for <code>User</code> component as below:</p>
  <figure class="m_original">
    <img src="https://telegra.ph/file/abb4844d85deea26666dd.png" width="731" />
  </figure>
  <p>Note: In React v15.5 <em>PropTypes</em> were moved from <code>React.PropTypes</code> to <code>prop-types</code> library.</p>

]]></content:encoded></item><item><guid isPermaLink="true">https://teletype.in/@open_collections/EMhIA49jG</guid><link>https://teletype.in/@open_collections/EMhIA49jG?utm_source=teletype&amp;utm_medium=feed_rss&amp;utm_campaign=open_collections</link><comments>https://teletype.in/@open_collections/EMhIA49jG?utm_source=teletype&amp;utm_medium=feed_rss&amp;utm_campaign=open_collections#comments</comments><dc:creator>open_collections</dc:creator><title>What are stateful components?</title><pubDate>Tue, 23 Jun 2020 21:09:11 GMT</pubDate><description><![CDATA[<img src="https://telegra.ph/file/b47ee67da182a7584759f.png"></img>If the behaviour of a component is dependent on the state of the component then it can be termed as stateful component. These stateful components are always class components and have a state that gets initialized in the constructor.]]></description><content:encoded><![CDATA[
  <p>If the behaviour of a component is dependent on the <em>state</em> of the component then it can be termed as stateful component. These <em>stateful components</em> are always <em>class components</em> and have a state that gets initialized in the <code>constructor</code>.</p>
  <figure class="m_original">
    <img src="https://telegra.ph/file/b47ee67da182a7584759f.png" width="731" />
  </figure>
  <p>React 16.8 Update: Hooks let you use state and other React features without writing classes.</p>
  <p><em>The Equivalent Functional Component</em></p>
  <figure class="m_original">
    <img src="https://telegra.ph/file/0b9939a68e9fefb2975d9.png" width="732" />
  </figure>

]]></content:encoded></item></channel></rss>