Taking Gatsby for a spin

Taking Gatsby for a spin  #webdev #javascript #reactjs #Flexi_IT

  • It’s not that I really need a new tool to create static sites, it’s just that every developer tweeting about Gatsby seems to think it’s the most exciting thing on the web since they learned they could combine the and tag.
  • Here are some of the important features of Gatsby: – – GatsbyJS is based on React which means that you’ll be writing almost everything in JavaScript / JSX.
  • If you already like React, you’ll most definitely enjoy creating static sites with Gatsby.
  • Gatsby comes with plugins to pull in data from several APIs, CMS systems and local files.
  • PRPL + the gatsby offline plugin mean that your site will be considered a PWA, will load insanely fast on any device and scores great in Google lighthouse.

A short write-up on Gatsby, a static site generator based on React
Continue reading “Taking Gatsby for a spin”

Cosmic JS vs. WordPress – Hacker Noon

  • Cosmic JS vs. WordPressCosmic JS vs. WordPress for Content ManagementCosmic JS is an API-first CMS that helps teams of developers and content editors build apps faster.
  • Wondering what makes Cosmic JS a more suitable CMS backend for you?Cosmic JS offers an intuitive API that can deliver content to any website or application.
  • Cosmic JS is more productiveInstalled content management systems create ongoing technical debt which becomes tomorrow’s problem.
  • Cosmic JS is an API-first content management platform so we take care of maintenance, security and scalability for you.Content stored in Cosmic JS and delivered by the API is protected with 256-bit SSL encryption.
  • You can also restrict access to your content by adding optional access tokens located in the Settings tab in your Cosmic JS Bucket.ConclusionLegacy content management systems are not equipped to handle the speed of modern business.

Cosmic JS is an API-first CMS that helps teams of developers and content editors build apps faster. 64.5% of developers surveyed on StackOverflow stated that WordPress was one of their most dreaded…
Continue reading “Cosmic JS vs. WordPress – Hacker Noon”

Top JavaScript Libraries & Tech to Learn in 2018 – JavaScript Scene – Medium

  • There are still lots of developers working on Angular code bases, which shows up in Google trends:But as React continues to win customer satisfaction surveys, React growth has left Angular (and everything else) in the dust.What About Vue.js?
  • Vue.js is going to have a much harder time stealing users from React than they are having stealing users from jQuery and Angular.There’s plenty of room for Vue.js to pick up a lot of Angular and jQuery users at a fast clip, but they will likely hit a brick wall…
  • Why so Much Interest in React?Browsing through the React job listings, I noticed an interesting trend — a lot of them were for things that we don’t think of as front-end web work:React Native (for perspective, there are more of these openings than the total number of Vue.js openings)React for IoTReact for AR/VR…
  • In fact, I found quite a few React job listings that didn’t even mention JavaScript.React also offers a rich, vibrant ecosystem piggybacking on React’s de-facto standards — something the JavaScript world hasn’t seen since jQuery plugins ruled the web.The question is no longer “which framework?”
  • We have a great framework to build apps on now, and there’s a great ecosystem settling in around React.Which Topics Should You Study?Like last year, you can’t go wrong focusing on the essentials, but you should place more emphasis on functional programming for React apps.React is great for two primary reasons:Deterministic…

Last year, I wrote an article rounding up the top tech to learn in 2017. This year there are some surprises. First, software ate the world, the web ate software, and JavaScript ate the web. In 2018…
Continue reading “Top JavaScript Libraries & Tech to Learn in 2018 – JavaScript Scene – Medium”

So you want to learn React.js? – EdgeCoders

So you want to learn React.js?


#javascript #ReactJS

  • This is a good thing, React is a library that does one thing really well, but it’s not the answer to everything.However, identify whether what you’re currently learning is React or not, mainly so that you don’t get confused about your effort to learn React itself.
  • This is not counting the tools and other libraries that complete React like for example, Redux or Relay.There is an important question about the order with which you need to learn things.
  • I like to be specific about this here, so if you don’t know how to map or reduce an array, or if you don’t understand the concept of closures and callbacks, or if seeing “this” in JavaScript code confuses you, you’re not ready for React and you still have a…
  • Imports and exports of modules (most important of all)You don’t have to start with ES2015, but you do need to eventually learn it (and not because you’re learning React).
  • Don’t start here until you’re very comfortable with React itself.

First, make peace with the fact that you need to learn more than just React to work with React. This is a good thing, React is a library that does one thing really well, but it’s not the answer to…
Continue reading “So you want to learn React.js? – EdgeCoders”

react-compound-slider — React compound slider | Next level slider component 🎰 #ReactJS

react-compound-slider — React compound slider | Next level slider component 🎰   #ReactJS

  • To install and save in your dependencies, run: – – This library takes a compound component approach to creating sliders that separates the data/logic from presentation.
  • The components use the function as child components pattern.
  • By taking this approach it also frees you up to render whatever markup you want to customize your slider.
  • In general slider components are composed of a relatively positioned outer div with elements absolutely positioned inside by a percentage.
  • In this library the , , and components are used as children to the component and they let you tap into a stream of values and percentages that you can then use to render your own components.

react-compound-slider – React Compound Slider | Next Level Slider Component :slot_machine:
Continue reading “react-compound-slider — React compound slider | Next level slider component 🎰 #ReactJS”

Deep dive into observed Components with React.js and FrintJS

  • Higher-order componentThe API of the observe higher-order component (HoC) is quite simple:import React from ‘react’;import { observe } from ‘frint-react’;function MyComponent(props) { return div…/div;}const ObservedComponent = default ObservedComponent;It receives a function (that we called fn above), where you can generate your props that will be ultimately passed to your target…
  • Generating props synchronouslyThe fn function also gives you access to the FrintJS App’s instance:const ObservedComponent = observe(function (app) { // this will be the `props` in MyComponent return {}; })(MyComponent);Since you have access to your app instance, you can also get values from it, including providers:const ObservedComponent = observe(function (app)…
  • Because they have this dynamic nature, the observe HoC gives you access to parent props as an Observable:const ObservedComponent = observe(function (app, props$) { // …})(MyComponent);In addition to your FrintJS App instance (app), there is a second argument props$, which is props passed down to you from the parent Component…
  • But as your application grows, there will be times, when you need to work with multiple Observables and return a single props stream.This is where a helper function called streamProps shipped with frint-react can come handy.If you are an RxJS ninja, you may skip this part =DThe streamProps function will…
  • In that case, you may want to pass some default props to your target component before new values are generated.The streamProps helper function receives an optional first argument, where you can pass your default props:import { streamProps } from ‘frint-react’;const defaultProps = { foo: ‘n/a’, bar: ‘n/a’, baz: ‘n/a’,};const props$…

Our focus in this article will be about using the observe higher-order component, shipped from frint-react package. To make the most out of this, it is advised that you read these previous articles…
Continue reading “Deep dive into observed Components with React.js and FrintJS”

A Solution To The React className Controversy – Burke Knows Words

  • People can be so cruel.Another one of these very difficult and sensitive topics is the use of className instead of class in React.Introducing Simple React Snippets: class to classNameNearly everyone has heard of the world famous Simple React Snippets for VS Code.
  • The set of React Snippets that is so good, Ryan Florence once said…And now, Simple React Snippets is even better because it has solved one of the most contentious, difficult and time consuming tasks in React.
  • We don’t go to bed when it gets dark because we have ELECTRICITY, and we don’t have to use Find and Replace to change class to className because Simple React Snippets will now do it for you.How It worksSimple React Snippets uses a very complicated and advanced algorithm to find any…
  • This will bring up the “React: class to ClassName” command.
  • It feels kind of like I’m inviting myself into your house.In any event, I’ll continue to work on that portion and once I’ve ironed out the edge cases, this generation might be the last to know the pains of having to change class to className.What a time to be alive!Grab…

The tech community is no stranger to controversy. Just the other week I was faced with an extremely awkward and difficult situation when someone I thought was a close friend (who I won’t name…
Continue reading “A Solution To The React className Controversy – Burke Knows Words”