<?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: Carlos Andrés Mora González</title>
    <description>The latest articles on DEV Community by Carlos Andrés Mora González (@sitonimbus).</description>
    <link>https://dev.to/sitonimbus</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%2F715883%2F21482e66-ddcd-4204-81c8-5c62266bde16.jpg</url>
      <title>DEV Community: Carlos Andrés Mora González</title>
      <link>https://dev.to/sitonimbus</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/sitonimbus"/>
    <language>en</language>
    <item>
      <title>Mac OS 2025</title>
      <dc:creator>Carlos Andrés Mora González</dc:creator>
      <pubDate>Fri, 03 Oct 2025 09:27:29 +0000</pubDate>
      <link>https://dev.to/sitonimbus/mac-os-2025-53c8</link>
      <guid>https://dev.to/sitonimbus/mac-os-2025-53c8</guid>
      <description>&lt;h1&gt;
  
  
  Hi
&lt;/h1&gt;

&lt;p&gt;&lt;em&gt;If you are a pro just click here &lt;a href="https://www.robinwieruch.de/mac-setup-web-development/" rel="noopener noreferrer"&gt;Mac Setup for Web Development [2025]&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  1. First Install homebrew
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;# paste in terminal and follow the instructions
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;em&gt;optional update your stuff&lt;/em&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;brew update
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  2. Second install some GUI applications
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;brew install visual-studio-code
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  3. Second install some terminal applications
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;brew install \
  wget \
  git \
  nvm \
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  4. Config your git
&lt;/h2&gt;

&lt;p&gt;*Change "Your Name" and "&lt;a href="mailto:you@your-domain.com"&gt;you@your-domain.com&lt;/a&gt;" with your information&lt;br&gt;
*&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;git config --global user.name "Your Name"
git config --global user.email "you@your-domain.com"
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  5. Config your nvm
&lt;/h2&gt;

&lt;p&gt;&lt;em&gt;Add nvm to your path&lt;/em&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;echo "source $(brew --prefix nvm)/nvm.sh" &amp;gt;&amp;gt; ~/.zshrc
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;em&gt;Refresh your terminal&lt;/em&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;source ~/.zshrc
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  6. Install Node
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;nvm install --lts
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;And you are ready to code :). If you need to go further you can read this:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.taniarascia.com/setting-up-a-brand-new-mac-for-development/" rel="noopener noreferrer"&gt;How to Set up a Mac for Development&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If you are trying to make Mobile apps with react native, you will need to install XCode with appstore... so... maybe you will need to update your system&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>programming</category>
      <category>macos</category>
    </item>
    <item>
      <title>Super flexible container</title>
      <dc:creator>Carlos Andrés Mora González</dc:creator>
      <pubDate>Fri, 24 Jun 2022 17:25:27 +0000</pubDate>
      <link>https://dev.to/sitonimbus/super-flexible-container-11kc</link>
      <guid>https://dev.to/sitonimbus/super-flexible-container-11kc</guid>
      <description>&lt;h1&gt;
  
  
  SitoContainer
&lt;/h1&gt;

&lt;p&gt;Super flexible container, very similar to @mui's Box&lt;/p&gt;

&lt;h2&gt;
  
  
  First!
&lt;/h2&gt;

&lt;h3&gt;
  
  
  1 - Create a new react app
&lt;/h3&gt;

&lt;p&gt;If you are using yarn (I recommended it)&lt;br&gt;&lt;br&gt;
&lt;code&gt;yarn create react-app &amp;lt;container-name&amp;gt;&lt;/code&gt;&lt;br&gt;&lt;br&gt;
or if you like to use npm&lt;br&gt;&lt;br&gt;
&lt;code&gt;npx create-react-app &amp;lt;container-name&amp;gt;&lt;/code&gt;&lt;br&gt;&lt;br&gt;
 if everything goes fine you will have a page like this one at localhost:3000 (if port 3000 is not busy):&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.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%2Fq6hntn4nx0su99s3nggo.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.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%2Fq6hntn4nx0su99s3nggo.jpg" alt="Image description" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;
  
  
  Next!
&lt;/h2&gt;
&lt;h3&gt;
  
  
  2 - Install &lt;a href="https://www.npmjs.com/package/@emotion/react" rel="noopener noreferrer"&gt;@emotion&lt;/a&gt;
&lt;/h3&gt;

&lt;p&gt;Emotion is a library designed for writing css styles with JavaScript. It provides powerful and predictable style composition in addition to a great developer experience with features such as source maps, labels, and testing utilities. Both string and object styles are supported.&lt;/p&gt;

&lt;p&gt;dependencies:&lt;br&gt;&lt;br&gt;
&lt;code&gt;yarn add @emotion/css @emotion/react @emotion/styled&lt;/code&gt;&lt;br&gt;&lt;br&gt;
or with npm:&lt;br&gt;&lt;br&gt;
&lt;code&gt;npm install @emotion/css @emotion/react @emotion/styled&lt;/code&gt;    &lt;/p&gt;
&lt;h2&gt;
  
  
  &lt;strong&gt;Time to CODE!&lt;/strong&gt;
&lt;/h2&gt;
&lt;h3&gt;
  
  
  3 - Create your container component
&lt;/h3&gt;

&lt;p&gt;You can remove other files in &lt;code&gt;/src&lt;/code&gt; folder, all but index.js and App.js&lt;br&gt;&lt;br&gt;
Go to your &lt;code&gt;App.js&lt;/code&gt; file at &lt;code&gt;/src&lt;/code&gt; directory, in this file you will find this one:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;import logo from "./logo.svg";
import "./App.css";

function App() {
  return (
    &amp;lt;div className="App"&amp;gt;
      &amp;lt;header className="App-header"&amp;gt;
        &amp;lt;img src={logo} className="App-logo" alt="logo" /&amp;gt;
        &amp;lt;p&amp;gt;
          Edit &amp;lt;code&amp;gt;src/App.js&amp;lt;/code&amp;gt; and save to reload.
        &amp;lt;/p&amp;gt;
        &amp;lt;a
          className="App-link"
          href="https://reactjs.org"
          target="_blank"
          rel="noopener noreferrer"
        &amp;gt;
          Learn React
        &amp;lt;/a&amp;gt;
      &amp;lt;/header&amp;gt;
    &amp;lt;/div&amp;gt;
  );
}

export default App;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;We will remove all of these and will create your new component, in this case your container component, in this tutorial will be SitoContainer:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;function SitoContainer() {
  return &amp;lt;div&amp;gt;&amp;lt;/div&amp;gt;;
}

export default SitoContainer;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Well now our container should render its children, so let's import PropTypes from &lt;a href="https://www.npmjs.com/package/prop-types" rel="noopener noreferrer"&gt;prop-types&lt;/a&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;import PropTypes from "prop-types";

function SitoContainer(props) {

  const { children } = props;

  return &amp;lt;div&amp;gt;{children}&amp;lt;/div&amp;gt;;
}

SitoContainer.defaultProps = {
  children: &amp;lt;&amp;gt;&amp;lt;/&amp;gt;,
};

SitoContainer.propTypes = {
  children: PropTypes.node,
};

export default SitoContainer;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Ok, now we should allow our future users to customize our component with their CSS rules, so let's add other props, like:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;sx (styled-components like &lt;a href="https://mui.com/system/basics/#the-sx-prop" rel="noopener noreferrer"&gt;MUI&lt;/a&gt;)&lt;/li&gt;
&lt;li&gt;style (inline-style)&lt;/li&gt;
&lt;li&gt;className (css classname)
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;import PropTypes from "prop-types";

import { css } from "@emotion/css";

function SitoContainer(props) {
  const { children, className, sx, style } = props;

  // IMPORTANT!!!
  // this is for turn your styled-components rules as dynamic 
  // @emotion/css class
  const newSx = css({sx});

  return (
    &amp;lt;div className={`${className} ${newSx}`} style={style}&amp;gt;
      {children}
    &amp;lt;/div&amp;gt;
  );
}

SitoContainer.defaultProps = {
  className: "",
  sx: {},
  style: {},
  children: &amp;lt;&amp;gt;&amp;lt;/&amp;gt;,
};

SitoContainer.propTypes = {
  children: PropTypes.node,
  className: PropTypes.string,
  sx: PropTypes.oneOfType([
    PropTypes.arrayOf(
      PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])
    ),
    PropTypes.func,
    PropTypes.object,
  ]),
  style: PropTypes.oneOfType([
    PropTypes.arrayOf(
      PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])
    ),
    PropTypes.func,
    PropTypes.object,
  ]),
};

export default SitoContainer;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;em&gt;Note that PropTypes of style and sx props are really tedious, this is because these props can be almost anything&lt;/em&gt;&lt;br&gt;&lt;br&gt;
Well our container is almost done, we can add other props like:  &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;id (html identification)&lt;/li&gt;
&lt;li&gt;display (flex, block, etc.)
In my case I added:&lt;/li&gt;
&lt;li&gt;background (string)&lt;/li&gt;
&lt;li&gt;fullWidth (boolean)&lt;/li&gt;
&lt;li&gt;flexDirection (row, column, etc)
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;You can check in my &lt;a href="https://github.com/SitoNumbis/sito-container" rel="noopener noreferrer"&gt;github repo&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;
  
  
  Finally!
&lt;/h2&gt;
&lt;h3&gt;
  
  
  4 - Bundle your container and publish it
&lt;/h3&gt;

&lt;p&gt;Create a file with the name &lt;code&gt;.babelrc&lt;/code&gt; containing:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;{
  "presets": [
    [
      "@babel/preset-react",
      {
        "runtime": "automatic"
      }
    ]
  ]
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This is for support for the experimental syntax &lt;code&gt;jsx&lt;/code&gt;, if you want to look futher, &lt;a href="https://babeljs.io/docs/en/babel-preset-react" rel="noopener noreferrer"&gt;read here&lt;/a&gt;&lt;br&gt;&lt;br&gt;
Install two dev dependencies:&lt;br&gt;&lt;br&gt;
&lt;code&gt;yarn add @babel/cli @babel/preset-react&lt;/code&gt;&lt;br&gt;&lt;br&gt;
or with npm:&lt;br&gt;&lt;br&gt;
&lt;code&gt;npm install @babel/cli @babel/preset-react&lt;/code&gt;&lt;br&gt;&lt;br&gt;
Add this script to your &lt;code&gt;package.json&lt;/code&gt;:&lt;br&gt;&lt;br&gt;
&lt;code&gt;"publish:npm": "babel src/ -d dist --copy-files"&lt;/code&gt;&lt;br&gt;&lt;br&gt;
and this line, also to your &lt;code&gt;package.json&lt;/code&gt;:&lt;br&gt;&lt;br&gt;
&lt;code&gt;"main":"dist/App.js"&lt;/code&gt;&lt;br&gt;&lt;br&gt;
This last part is for tell to npm, or yarn, where to look your modules when a user install them&lt;br&gt;
Use for local test &lt;code&gt;npm install my-package&lt;/code&gt; where &lt;code&gt;my-package&lt;/code&gt; is the root folder of your package, in this case our container&lt;br&gt;&lt;br&gt;
If everything goes fine, on the command line, navigate to the root directory of your package and run to publish your package:&lt;br&gt;&lt;br&gt;
&lt;code&gt;npm publish&lt;/code&gt;&lt;br&gt;&lt;br&gt;
&lt;em&gt;for more instructions &lt;a href="https://docs.npmjs.com/creating-and-publishing-unscoped-public-packages" rel="noopener noreferrer"&gt;read here&lt;/a&gt;&lt;/em&gt;  &lt;/p&gt;

&lt;p&gt;If you want to try my container, you can check here &lt;a href="https://www.npmjs.com/package/sito-container" rel="noopener noreferrer"&gt;sito-container&lt;/a&gt;&lt;/p&gt;

</description>
      <category>tutorial</category>
      <category>react</category>
      <category>javascript</category>
      <category>emotion</category>
    </item>
  </channel>
</rss>
