<?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>Forem: Amin Gholamisani</title>
    <description>The latest articles on Forem by Amin Gholamisani (@amin_gholami).</description>
    <link>https://forem.com/amin_gholami</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%2F361760%2F69976636-9fe9-4814-9aa1-8ba32998588c.jpg</url>
      <title>Forem: Amin Gholamisani</title>
      <link>https://forem.com/amin_gholami</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/amin_gholami"/>
    <language>en</language>
    <item>
      <title>How to import cdbreact components to typescript projects</title>
      <dc:creator>Amin Gholamisani</dc:creator>
      <pubDate>Wed, 29 Jun 2022 08:51:05 +0000</pubDate>
      <link>https://forem.com/amin_gholami/how-to-add-typescript-to-cdbreact-components-mbd</link>
      <guid>https://forem.com/amin_gholami/how-to-add-typescript-to-cdbreact-components-mbd</guid>
      <description>&lt;p&gt;CDBReact is one of the popular packages that updated recently and you can use it to have many reusable components for react such as Navbar, Sidebar, etc.&lt;br&gt;
But if you want to have Typescript components, you will see an type error when you want to import the components:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Could not find a declaration file for module 'cdbreact'. 'C:/node_modules/cdbreact/dist/index.js' implicitly has an 'any' type.&lt;br&gt;
  Try &lt;code&gt;npm i --save-dev @types/cdbreact&lt;/code&gt; if it exists or add a new declaration (.d.ts) file containing &lt;code&gt;declare module 'cdbreact';&lt;/code&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;This error is because cdbreact don't have type declaration yet and you need to import this in another way like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;const cdbreact = require('cdbreact');  
const { CDBBtN, CDBBox } = cdbreact;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now you can see it works without any error.&lt;br&gt;
Enjoy!&lt;/p&gt;

</description>
      <category>react</category>
      <category>typescript</category>
      <category>cdbreact</category>
      <category>javascript</category>
    </item>
    <item>
      <title>Frontend Interview questions I had with a Norwegian Startup</title>
      <dc:creator>Amin Gholamisani</dc:creator>
      <pubDate>Wed, 30 Mar 2022 13:23:25 +0000</pubDate>
      <link>https://forem.com/amin_gholami/frontend-interview-questions-i-had-with-a-norwegian-startup-2mb9</link>
      <guid>https://forem.com/amin_gholami/frontend-interview-questions-i-had-with-a-norwegian-startup-2mb9</guid>
      <description>&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fcsb1srj7hggw6q6jqgkb.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fcsb1srj7hggw6q6jqgkb.png" alt="Image description"&gt;&lt;/a&gt;&lt;br&gt;
I had the chance to apply for a Norwegian startup in the frontend developer position. Javascript, React, CSS, and API were important parts for them and they didn't mention years of experience in their job description.&lt;br&gt;
After apply I received a link to book time for have a 15 minutes interview. It was a short technical interview which I needed to answer questions in a short way. They could filter candidates with this interview and I believe it is a very useful way.&lt;br&gt;
You can see the questions down below:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Difference between var, let, and const&lt;/li&gt;
&lt;li&gt;&lt;a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/Reduce" rel="noopener noreferrer"&gt;Describe map and reduce array methods&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://dmitripavlutin.com/differences-between-arrow-and-regular-functions/" rel="noopener noreferrer"&gt;Difference between regular functions and arrow functions&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://developer.mozilla.org/en-US/docs/Web/CSS/Using_CSS_custom_properties" rel="noopener noreferrer"&gt;Do you have experience in CSS Native variables?&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Flexible_Box_Layout/Aligning_Items_in_a_Flex_Container" rel="noopener noreferrer"&gt;How do you center something vertically with flexbox?&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://dev.to/colocodes/react-class-components-vs-function-components-23m6"&gt;Overall difference between React components and functional components and how you manage state in them?&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.codecademy.com/article/react-virtual-dom" rel="noopener noreferrer"&gt;Explain virtual Dom&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.youtube.com/watch?v=IK9k9hSuYeA" rel="noopener noreferrer"&gt;Explain the concept of two-way data binding&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.geeksforgeeks.org/difference-between-promise-and-async-await-in-node-js/" rel="noopener noreferrer"&gt;Difference between Promises and async-await in error handling&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;How could you handle this situation: response to an API request has over 1000 results! (The answer is Pagination)&lt;/li&gt;
&lt;li&gt;&lt;a href="https://blog.restcase.com/4-most-used-rest-api-authentication-methods/" rel="noopener noreferrer"&gt;How do you authenticate in APIs?&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://webpack.js.org/guides/tree-shaking/" rel="noopener noreferrer"&gt;Do you know what is Tree shaking in tools like Webpack?&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Do you have experience with frontend testing frameworks?&lt;/li&gt;
&lt;li&gt;Your branching strategy in Git, describe it&lt;/li&gt;
&lt;li&gt;Do you have experience deploying in DevOps platforms?&lt;/li&gt;
&lt;li&gt;Do you know what is CI/CD?&lt;/li&gt;
&lt;li&gt;Do you prefer to hand-code your CSS or prefer to use libraries?&lt;/li&gt;
&lt;li&gt;Do you prefer a specific IDE?&lt;/li&gt;
&lt;li&gt;Do you prefer Tabs or spaces? :)&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Also after this meeting, they sent feedback with some useful links which could sharpen my skills! &lt;br&gt;
I liked the interview process and wanted to share it with you. Hope you like it. &lt;/p&gt;

</description>
      <category>interview</category>
      <category>javascript</category>
      <category>css</category>
      <category>react</category>
    </item>
  </channel>
</rss>
