4. Four ways to style react components – codeburst

  • All depend on your personal preferences and the specific complexity of your application.If you want to add just a few style properties, then inline styling is the best option.When you want to reuse your style properties in the same file then style-component are perfect.When your application is more complex I…
  • Instead they are specified with an object whose key is the camelCased version of the style name, and whose value is the style’s value, usually a string.We can create a variable that stores style properties and then pass it to the element like style={nameOfvariable}We can also pass the styling directly…
  • CSS ModulesA CSS Module is a CSS file in which all class names and animation names are scoped locally by default.
  • Great article about css modules here.Similar to css we import css file import styles ‘.
  • Styled-components 💅Styled-components is a library for React and React Native that allows you to use component-level styles in your application that are written with a mixture of JavaScript and CSSFirst we need to install styled-components librarynpm install styled-components –saveNow we can create a variable by selecting a particular html element…

There are four different options to style React components. All depend on your personal preferences and the specific complexity of your application. In React, inline styles are not specified as a…
Continue reading “4. Four ways to style react components – codeburst”

Building an app: React Native vs Ionic – Hacker Noon

Building an app: React Native vs #Ionic  #ReactJS #JavaScript

  • In this article, we are going to make a comparison of two frameworks, React Native and Ionic, based on our real time experience in frontend development.When developing various products, either for ourselves or for the clients, there has always been a question that interested us: how can we narrow down time and cost of product development.Android and especially iOS developers have always been valued greatly and cost a lot, and when developing for two platforms one has to spend twice as much money.At some point we were experimenting with Cordova, but it didn’t feel as if we can get something valuable out of it.Then we noticed Ionic.
  • Now we would like to give you detailed frameworks comparison and explain you why React Native is better solution for our developers.We were always trying to get more expertise on different technologies and use them in practice in order to define the best solution.
  • We also kept on watching Ioinc2, which was supposed to become an innovation that would solve many issues that we had while working with Ionic1.The approaches of given frameworks are very different but for us React Native is an ultimate winner.We chose main React Native advantages that are superior in relation to Ionic1/2:Response time that could be compared to native apps.Ability to reuse the code parts (not all code) for desktop (web apps) and mobile (mobile apps) and even for the server.
  • (:-))Incredibly convenient toolchain for developers that allows to quickly develop and debug the app.Big amount of elaborated components from Facebook.Even bigger amount of components from community.Ability to realize the ideas of functional programming in development which ensures great stability and reliability of the app and relative scaling simplicity.However, we don’t make a point here that React Native is 100% perfect.
  • We also chose some of React Native disadvantages in comparison with Native Apps:Those code parts that are linked to work with hardware solutions, camera, external libraries integration, etc are still done in Native parts.The interface between javascript and native part is not so simple (but not more complicated than cordova).

When you start to use new technology, you cannot be sure it will be the best solution. In this article, we are going to make a comparison of two frameworks, React Native and Ionic, based on our real t
Continue reading “Building an app: React Native vs Ionic – Hacker Noon”

Learning React and React-Native – Jorge Rubiano – Medium

Learning React and React-Native  #react #learning #reactnative #reactjs #reactjs

  • Learning React and React-NativeExample APP React-nativeIn this article I want to show you about my learning experience using the technologies: “React” and “react-native”, in this moment I am not an expert in this topic, but I am convinced the best option for learning is to create something.Shots — Game ES6I heard about react in the past year (2016), in that year I followed the new technologies and standards in Javascript, learning about ES6, how to configure a basic environment with npm scripts, in this case I used this environment to develop simple games with ES6 and use new technologies such as Service WorkerI decided to start learn react, At first to me was complicated because I had never used webpack, the majority of tutorials I followed need configure this tool initially.Fortunately in this year emerged create-react-app, with this module is very easy to start a project with react, this module configure the environment for you.With create-react-app developed my first “Hello World”, the process was very easy, even the browser makes automatic updates, I think this is “Awesome”.
  • I read articles and saw videos about react, later I decided search a course, It called my attention “react for beginners” by Wes Bos, I learned other topics in courses the Wes Bos for example Flexbox, then I decided to take that course (React for Beginners).
  • Example Project course.The project we develop in this course is called “Catch of the day”, we not only learned about react but also firebase, in this course I understood about the JSX, state, props, components, routing, fetch data and other topics.For me this course is a good introduction to learn react, in this course we not use redux or other libraries to manage the state.Personally I liked React because I use ES6 in the process, for example .
  • reducer, arrow functions and other features , I know there are other fantastic frameworks for example AngularJS/Angular or libraries such as VueJS, At this moment for my work React is the perfect tool.

In this article I want to show you about my learning experience using the technologies: “React” and “react-native”, in this moment I am not an expert in this topic, but I am convinced the best option…
Continue reading “Learning React and React-Native – Jorge Rubiano – Medium”