<?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: bronxsystem</title>
    <description>The latest articles on DEV Community by bronxsystem (@bronxsystem).</description>
    <link>https://dev.to/bronxsystem</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%2F409398%2F1cd23080-8d36-494d-9a06-7510fb46f891.jpg</url>
      <title>DEV Community: bronxsystem</title>
      <link>https://dev.to/bronxsystem</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/bronxsystem"/>
    <language>en</language>
    <item>
      <title>Material ui themeing Typoography</title>
      <dc:creator>bronxsystem</dc:creator>
      <pubDate>Wed, 11 Nov 2020 03:58:14 +0000</pubDate>
      <link>https://dev.to/bronxsystem/material-ui-themeing-typoography-378e</link>
      <guid>https://dev.to/bronxsystem/material-ui-themeing-typoography-378e</guid>
      <description>&lt;p&gt;Hey all I have been trying to add a default margin bottom to all my typography. Struggling I dont understand the documentation.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;theme&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;createMuiTheme&lt;/span&gt;&lt;span class="p"&gt;({&lt;/span&gt;
  &lt;span class="na"&gt;typography&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="na"&gt;subtitle1&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="na"&gt;fontSize&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;12&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="p"&gt;},&lt;/span&gt;
    &lt;span class="na"&gt;body1&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="na"&gt;fontWeight&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;500&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="p"&gt;},&lt;/span&gt;
    &lt;span class="na"&gt;button&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="na"&gt;fontStyle&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;italic&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="p"&gt;},&lt;/span&gt;
  &lt;span class="p"&gt;},&lt;/span&gt;
&lt;span class="p"&gt;});&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;I tried writing&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;theme&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;createMuiTheme&lt;/span&gt;&lt;span class="p"&gt;({&lt;/span&gt;
  &lt;span class="na"&gt;h1&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
   &lt;span class="na"&gt;marginBottom&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;20px&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt; 
  &lt;span class="p"&gt;},&lt;/span&gt;
&lt;span class="p"&gt;});&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;its not working :(&lt;/p&gt;

</description>
      <category>react</category>
      <category>javascript</category>
      <category>beginners</category>
    </item>
    <item>
      <title>how to learn websockets react</title>
      <dc:creator>bronxsystem</dc:creator>
      <pubDate>Mon, 09 Nov 2020 02:34:35 +0000</pubDate>
      <link>https://dev.to/bronxsystem/how-to-learn-websockets-react-52ea</link>
      <guid>https://dev.to/bronxsystem/how-to-learn-websockets-react-52ea</guid>
      <description>&lt;p&gt;I want to learn about websockets and how to work with this in react. How did you all learn is there a recommended book or course?&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>react</category>
      <category>javascript</category>
    </item>
    <item>
      <title>Order of events and script js </title>
      <dc:creator>bronxsystem</dc:creator>
      <pubDate>Thu, 05 Nov 2020 08:32:12 +0000</pubDate>
      <link>https://dev.to/bronxsystem/order-of-events-and-script-js-2oel</link>
      <guid>https://dev.to/bronxsystem/order-of-events-and-script-js-2oel</guid>
      <description>&lt;p&gt;I tried googling the answer but having trouble wording it.&lt;br&gt;
I had a test today that asked me what would be the sequence for the following items.&lt;/p&gt;

&lt;p&gt;I can only remember&lt;/p&gt;

&lt;p&gt;Onload&lt;br&gt;
DOMcontentloaded&lt;br&gt;
script in head&lt;br&gt;
script after body&lt;/p&gt;

&lt;p&gt;Is there a word for this i wasnt sure what to search.&lt;/p&gt;

&lt;p&gt;or a book someone recommends?&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>react</category>
      <category>beginners</category>
      <category>devops</category>
    </item>
    <item>
      <title>Context API preventing rerenders?</title>
      <dc:creator>bronxsystem</dc:creator>
      <pubDate>Mon, 21 Sep 2020 00:51:26 +0000</pubDate>
      <link>https://dev.to/bronxsystem/context-api-preventing-rerenders-5gah</link>
      <guid>https://dev.to/bronxsystem/context-api-preventing-rerenders-5gah</guid>
      <description>&lt;p&gt;Hello All,&lt;/p&gt;

&lt;p&gt;I am no react wizard and would appreciate some help please. I have tried googling but the answers arent exactly what I need or bit cryptic to me.&lt;/p&gt;

&lt;p&gt;Using the context api. I have one function that calculates a value and a functional  component to display the value. The functional component uses the useContext hook to get access to state and functions.&lt;/p&gt;

&lt;p&gt;Do i simple using react.memo inside where the calculate function is or do i useMemo hook in the component? not sure how context api works with this.&lt;/p&gt;

&lt;p&gt;appState where I have my functions I export provider with values added as object&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;return (
    &amp;lt;AppContext.Provider
      value={{
        output: state.output,
      }}
    &amp;gt;
      {props.children}
    &amp;lt;/AppContext.Provider&amp;gt;
  );
};
export default CalcState;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;p&gt;because the values are in an object does that mean i have to use useCallback?&lt;/p&gt;

</description>
      <category>node</category>
      <category>react</category>
    </item>
    <item>
      <title>creating own flexbox grid help</title>
      <dc:creator>bronxsystem</dc:creator>
      <pubDate>Thu, 10 Sep 2020 08:03:39 +0000</pubDate>
      <link>https://dev.to/bronxsystem/creating-own-flexbox-grid-help-3n07</link>
      <guid>https://dev.to/bronxsystem/creating-own-flexbox-grid-help-3n07</guid>
      <description>&lt;p&gt;trying to create own flexbox grid but for some reason cant get the sizes right.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;    $class: "span";

  @for $i from 1 through 12{
    .#{$class}-#{$i}{
             flex-basis: calc(#{$i}/12 * 100%);

  }
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;p&gt;looks like this&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--DY689n81--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/otd2rv0z4raxzwgazajy.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--DY689n81--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/otd2rv0z4raxzwgazajy.jpg" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;i need to add margins but its not letting me use this.&lt;/p&gt;



&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;

         flex-basis: calc(((#{$i}/12 * 100%) + (#{$i} * 20px))); 
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

</description>
      <category>css</category>
      <category>webdev</category>
    </item>
    <item>
      <title>large video for website</title>
      <dc:creator>bronxsystem</dc:creator>
      <pubDate>Tue, 08 Sep 2020 01:38:43 +0000</pubDate>
      <link>https://dev.to/bronxsystem/large-video-for-website-3dp7</link>
      <guid>https://dev.to/bronxsystem/large-video-for-website-3dp7</guid>
      <description>&lt;p&gt;Hello all, &lt;/p&gt;

&lt;p&gt;I have a large video file that I want to use as a video blackground for a website. I was thinking should I upload to streaming service and then link that as background?&lt;/p&gt;

</description>
      <category>beginners</category>
      <category>design</category>
      <category>webdev</category>
    </item>
    <item>
      <title>AWS Cognito simpler register form?</title>
      <dc:creator>bronxsystem</dc:creator>
      <pubDate>Thu, 03 Sep 2020 07:39:37 +0000</pubDate>
      <link>https://dev.to/bronxsystem/aws-cognito-simpler-register-form-30oc</link>
      <guid>https://dev.to/bronxsystem/aws-cognito-simpler-register-form-30oc</guid>
      <description>&lt;p&gt;Hello All,&lt;/p&gt;

&lt;p&gt;I am working on implementing a register account option using aws cognito on my website. Is it possible to just have a form on my landing page and not have users go to that seperate create account page?&lt;/p&gt;

&lt;p&gt;Would be so much cleaner if I could just have email and register button on landing page that registers the user. Currently user click register takes them to the create account page.&lt;/p&gt;

&lt;p&gt;can anyone point me in right direction?&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Deploying react and node.js?</title>
      <dc:creator>bronxsystem</dc:creator>
      <pubDate>Mon, 17 Aug 2020 01:43:15 +0000</pubDate>
      <link>https://dev.to/bronxsystem/deploying-react-and-node-js-19c8</link>
      <guid>https://dev.to/bronxsystem/deploying-react-and-node-js-19c8</guid>
      <description>&lt;p&gt;I am bit confused about deploying my react/node app. I have a domain that I purchased but not sure how to deploy. cPanel can host react apps but not sure about node =/ &lt;/p&gt;

</description>
      <category>beginners</category>
      <category>react</category>
      <category>javascript</category>
      <category>node</category>
    </item>
    <item>
      <title>I want to automate website actions.</title>
      <dc:creator>bronxsystem</dc:creator>
      <pubDate>Tue, 11 Aug 2020 11:30:20 +0000</pubDate>
      <link>https://dev.to/bronxsystem/i-want-to-automate-website-actions-39cl</link>
      <guid>https://dev.to/bronxsystem/i-want-to-automate-website-actions-39cl</guid>
      <description>&lt;p&gt;I am learning C# and thought would be a fun project to build a bot or a tool that automates website actions such as login in or clicking something or auto reply. &lt;br&gt;
Any tutorials or books someone can please share with me? Not sure where to start.&lt;/p&gt;

</description>
      <category>csharp</category>
      <category>beginners</category>
      <category>dotnet</category>
      <category>help</category>
    </item>
    <item>
      <title>C# basic indexer question</title>
      <dc:creator>bronxsystem</dc:creator>
      <pubDate>Tue, 04 Aug 2020 07:13:40 +0000</pubDate>
      <link>https://dev.to/bronxsystem/c-basic-indexer-question-45ld</link>
      <guid>https://dev.to/bronxsystem/c-basic-indexer-question-45ld</guid>
      <description>&lt;p&gt;Learning C# and this is bit embarrassing but I wanted to make sure I understand everything and not skip over things I do not understand.&lt;/p&gt;

&lt;p&gt;is the line with the following code initializing "Roles" as a property on an instance of the Employee Class?&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt; public Employee() =&amp;gt; Roles = new ProjectRoles(); 

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





&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;        class ProjectRoles
        {
            readonly Dictionary&amp;lt;int, string&amp;gt; roles = new Dictionary&amp;lt;int, string&amp;gt;();
            public string this[int projectId]
            {
                get
                {
                    if (!roles.TryGetValue(projectId, out string role))
                        throw new Exception("Project ID not found!");

                    return role;
                }

                set
                {
                    roles[projectId] = value;
                }
            }
        }

        class Employee { 
            public int EmployeeId { get; set; } 
            public string FirstName { get; set; } 
            public string LastName { get; set; } 
            public ProjectRoles Roles { get; private set; } 
            public Employee() =&amp;gt; Roles = new ProjectRoles(); 
}

    }
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;p&gt;Probably painfully obvious to you but I just wanted to confirm thank you.&lt;/p&gt;

</description>
      <category>beginners</category>
      <category>help</category>
      <category>csharp</category>
    </item>
    <item>
      <title>React performance affected by nested component constructor call?</title>
      <dc:creator>bronxsystem</dc:creator>
      <pubDate>Sun, 02 Aug 2020 23:43:41 +0000</pubDate>
      <link>https://dev.to/bronxsystem/react-performance-affected-by-nested-component-constructor-call-1kc</link>
      <guid>https://dev.to/bronxsystem/react-performance-affected-by-nested-component-constructor-call-1kc</guid>
      <description>&lt;p&gt;Hell all,&lt;/p&gt;

&lt;p&gt;Does performing the conditional render logic in the render method affect performance? &lt;br&gt;
Because if i do the condition render logic outside the component it will not call the nested components constructor. &lt;/p&gt;

&lt;p&gt;Example:&lt;br&gt;
Page&lt;br&gt;
 item text="data" &lt;br&gt;
 item text="data"&lt;br&gt;
 item text=""&lt;br&gt;
Page&lt;/p&gt;

&lt;p&gt;inside page component conditional logic {data &amp;amp;&amp;amp;  &amp;lt;item text="data"}&lt;/p&gt;

&lt;p&gt;basically if this item has data it will render else it wont. So if no data being passed the item constructor will not be called.&lt;/p&gt;

&lt;p&gt;This is standard however I prefer to put the conditional check inside my component like this:&lt;/p&gt;

&lt;p&gt;inside item component&lt;br&gt;
render(){&lt;br&gt;
if(!props.text){ &lt;br&gt;
return null&lt;br&gt;
}&lt;br&gt;
return div{props.text}div&lt;br&gt;
}&lt;/p&gt;

&lt;p&gt;This will however call the constructor and life cycle methods of List component. I want to do it this way because it makes the component more reusable and dont have to keep writing the conditional rendering logic outside the component.&lt;/p&gt;

&lt;p&gt;Will it be a big performance hit?&lt;br&gt;
I am aware of ShouldComponentUpdate however the first render may be slow right?&lt;/p&gt;

</description>
      <category>react</category>
      <category>javascript</category>
      <category>frontend</category>
    </item>
    <item>
      <title>Not setting colour model for image? </title>
      <dc:creator>bronxsystem</dc:creator>
      <pubDate>Mon, 20 Jul 2020 23:09:24 +0000</pubDate>
      <link>https://dev.to/bronxsystem/not-setting-colour-model-for-image-io6</link>
      <guid>https://dev.to/bronxsystem/not-setting-colour-model-for-image-io6</guid>
      <description>&lt;p&gt;I do not know much about colour profiles or models, hoping someone can point me in right direction.&lt;/p&gt;

&lt;p&gt;I need a image with an unspecified colour model/icc profile. &lt;/p&gt;

&lt;p&gt;Tried using photoshop but the default is RGB. Any ideas?&lt;/p&gt;

&lt;p&gt;I need this for an app im testing.&lt;/p&gt;

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