ReactJS, React Native & GraphQL Newsletter: 62

  • This week we debug React in Visual Studio Code, use GraphQL fragments, use React Styled Components, build better databases with PostgreSQL and much more!
  • In this guide I will show you how to supercharge your React workflow with Visual Studio Code’s debugging features.
  • This article includes some basic term and fundamentals approach for React JS and & React Native.
  • That’s it for the newest edition of the best ReactJS, React Native & GraphQL Newsletter!
  • Like & follow for all the news about ReactJS, React Native & GraphQL!

This week we debug React in Visual Studio Code, use GraphQL fragments, use React Styled Components, build better databases with PostgreSQL and much more!
Continue reading “ReactJS, React Native & GraphQL Newsletter: 62”

Norbert de Langen: Storybook has reached outside the React ecosystem & will continue to do so

Read our interview with @NorbertdeLangen about his recent work on Storybook:  #ReactJS

  • We strongly believe the problems Storybook solves are not unique to any single platform.Of course, we’re also going to be improving the features and performance of Storybook, and create new ways for you to extend Storybook and customise it for your use-case.
  • Finally: we’re really seeing the community getting involved with Storybook, we get pull requests making Storybook better in all sorts of ways we didn’t expect.
  • So who knows what will be included in the next release?Has rebranding from React Storybook changed its culture or direction?The culture certainly changed — now the community itself is driving Storybook forward.
  • If anything, I’d say our focus on helping the community co-maintain Storybook has had a major impact.Do your company clients adapt React style guides to their workflow?Yes in fact, most of them do.What do you think is the future of web and mobile development?Who knows?
  • I’m super excited about native support for ES modules in the modern browsers and Node.js!What are your favorite components, libraries, or community projects?Babel, Webpack, React, Glamorous, Yarn, Express, ESlint, Prettier, Jest, GraphQL.I’m also a huge fan of community-driven meetups.Pick one and tell us why: Redux or MobX?It depends.

Today, we’re opening our new series of interviews for React Day Berlin. Since Norbert de Langen is going to speak about building Storybook in Berlin in December, we decided to ask him a couple of…
Continue reading “Norbert de Langen: Storybook has reached outside the React ecosystem & will continue to do so”

Awesome Expo Apps for React Native – BlechaTech – Medium

Awesome Expo Apps for React Native  #reactnative #reactjs #reactjs

  • Awesome Expo Apps for React NativeI’ve been working through creating an app that I need for my kids baseball activities during the past month and I’ve been really impressed with the toolset that the Expo team has put together.
  • It’s much nicer for me if this doesn’t have to go through the app store for development and testing purposes.JavaScript tool set — I’ve decided to use JavaScript as my primary language for the next bit unless there’s a specific reason not to use it.React — I’m spending most of my front end development in react these days, and I’m very happy about it.
  • The mental model is fairly straightforward and translates from web to mobile gives you an expo app by default.
  • Check out the expo explanation video:I decided I wanted to keep track of the expo apps I’m seeing in publish and the added bonus that they’re typically linked with a github account.
  • The first two are (authors and notes are cited in the github repo, link below):Seattle JS Conference AppGraphQL NYCI’ll keep adding to the list as I find new expo apps and PRs are welcome!Photo Credits:

I’ve been working through creating an app that I need for my kids baseball activities during the past month and I’ve been really impressed with the toolset that the Expo team has put together. Given…
Continue reading “Awesome Expo Apps for React Native – BlechaTech – Medium”

FlexView: the easiest way to use flex with React – buildo blog

FlexView: the easiest way to use #flex with React 

#ReactJS #webdev #developer

  • FlexView: the easiest way to use flex with ReactA powerful React component to create any layout on any browser using the power of flex.The problem: doing complex layouts on browsersImplementing complex layouts in web projects has always been a hassle for developers and designers.
  • The API is complex and there are still many inconsistencies between browsers that force developers to overuse vendor prefixes and literally do magic tricks to achieve the desired layout.For these reasons, we asked ourselves: is there a way to simplify the API and handle any browser inconsistency in a single place?Introducing FlexView: our solution to the problemHere’s a typical CSS snippet using flexbox:.
  • flex-view { // flex display: flexbox; display: -webkit-box; display: -moz-box; display: -ms-flexbox; display: -webkit-flex; display: flex; // direction webkit-box-flex-direction: row; moz-box-flex-direction: row; ms-flex-direction: row; webkit-flex-direction: row; flex-direction: row; // grow, shrink, basis webkit-box-flex: 1 1 200px; moz-box-flex: 1 1 200px; ms-flex: 1 1 200px; webkit-flex: 1 1 200px; flex: 1 1 200px;}And this is how you do it with FlexView:FlexView grow shrink basis=’200′ /Now that I have your attention let’s dig more into FlexView’s API :)FlexView is first of all a React component, and like any good React component it’s stateless and works exclusively through props:You may have already noticed that FlexView API does not reflect completely the flexbox one.
  • This is also the default for a row/FlexView/FlexViewFlexView hAlignContent=’center’ FlexViewhorizontally column hAlignContent=’right’ FlexViewright aligned (inside a column)/FlexView FlexViewright aligned (stacked below his column vAlignContent=’top’ FlexViewtop aligned!
  • /FlexView/FlexViewAnd of course they can be used together:Horizontal and VerticalFlexView hAlignContent=’center’ vAlignContent=’center’ FlexViewthe center of the is just an introduction to the features of FlexView.

A powerful React component to create any layout on any browser using the power of flex.
Continue reading “FlexView: the easiest way to use flex with React – buildo blog”

A Night of ReactJSTuesday, July 25, 2017 at 6:00 pm This meetup focuses on open source, open tech and the open web.

Register today for a Night of ReactJS  
#developer #javascript #html #css #programmer #JS

  • ReactJS is an open source Javascript library for building user interfaces – and it is taking over front-end development.
  • It was created at Facebook and is now being used by Netflix, Airbnb, Walmart, Bleacher Report and many of the world’s top websites and companies.Attend the July meeting of Open Source South Carolina and not only find out why, but get a very personal tutorial over the course of a couple of hours.The meeting will be broken into three parts – an introduction to ReactJS, a discussion of features like Virtual DOM, JSX and many others, and an overview of features and processes for the advanced developer.The meeting will also once again feature community announcements, food and beverages, swag (shirts, stickers, etc.) and networking with many of the top technologists in the state.Doors open at 6:00 pm with food and networking, programming starts at approximately 6:30 pm ET.

Follow us on Twitter for information about events as they’re posted, and to get reminders before they happen. @ColaTechEvents
Continue reading “A Night of ReactJSTuesday, July 25, 2017 at 6:00 pm This meetup focuses on open source, open tech and the open web.”

Learn how to build #reactjs + #graphql web apps with @VulcanJS in this webinar from @projectricochet: #meteorjs

  • Want to learn how to rapidly deploy web apps with Vulcan?
  • If you’d like a full-stack React and GraphQL solution for your next project, you should learn a bit more about Vulcan.

Have you heard about Vulcan, but aren’t sure what it is about? Join us to learn how it can help your company!
Continue reading “Learn how to build #reactjs + #graphql web apps with @VulcanJS in this webinar from @projectricochet: #meteorjs”

Optimizing React Rendering (Part 1) – Flexport Engineering

Optimizing React Rendering (Part 1)  #Reactjs #Javascript #Webdev

  • PureComponent does a shallow object comparison on the props, and since you are passing in the same object reference, shouldComponentUpdate will return false and the updated data will not be rendered.This means that if any part of your app mutates data that needs to be rendered, PureComponent puts you at risk of displaying stale data.
  • This is by far the biggest blocker because it results in incorrect UI behavior, and it is outside the control of your component.Fix: Never mutate values used as React props or state.
  • Even if some ancestor component triggers a re-render, PureParent will not re-render because neither its state or props has changed.This gotcha also leads to incorrect UI behavior, but the issue is scoped to the component itself, making it easy to fix.Fix: Extract data dependency into state or props, and update state or props when the data changes.Object copyingQ: What happens when Parent is re-rendered with an unchanged props.dataList?A: PureChild is re-rendered wastefully because filter returns a new object, which tricks PureChild into thinking that the prop has changed.This problem is triggered by calling any function that creates a new object or using an inline object literal in render.Fix: Cache your derived data calculations.
  • A: PureChild is re-rendered wastefully because arrow functions and Function.prototype.bind return new function instances, which tricks PureChild into thinking that the onClick handler has changed.Fix: Don’t use arrow functions and bind in render.
  • When those props change, PureChild will re-render wastefully.Fix: Unless you’re writing some sort of higher-order-component, don’t be lazy and be explicit about the props that you are passing.ConclusionTurns out our app is littered with every single one of these gotchas, and is especially dependent on mutation side-effects.

We migrated our web app to React almost 3 years ago, and since React performs extremely well out of the box, optimizing performance was not something we had to worry about. However, as our…
Continue reading “Optimizing React Rendering (Part 1) – Flexport Engineering”

Mollie – Better payments

  • We make sure that all of Mollie’s packages and plugins, built by us and the community, are open-source and freely available.
  • So whether you prefer building on our API or a quick WooCommerce or Magento plugin, our host of packages and plugins will always allow you to efficiently integrate Payments and Recurring into any project.

Mollie builds payment products, commerce solutions and APIs that let you accept online and mobile payments, for small online stores and Fortune 500s alike.
Continue reading “Mollie – Better payments”

Wait. What is React Native Again?

Wait. What is React Native Again?   #reactNative

  • Overall, React Native has allowed our teams to build native apps in technology we understand, using tools we know and love.
  • One of our projects involved a re-write of an existing mobile application in Cordova.
  • Not only is React Native an extremely powerful tool for developing cross-platform applications in JavaScript, it’s very easy to learn for any Javascript developer with React knowledge .
  • When using a tool like Cordova, you write the majority of your business logic and UI in JavaScript.
  • React Native is a set of tools and libraries that allows developers to write React Components that generate genuine native interfaces.

As part of our consulting process here at Differential, we often determine that a mobile app would be a good fit for our clients. Most of the time Android and iOS support is desirable, and dedicating development resources to building a native experience for both platforms is very resource intensive. We’ve skirted around this issue in the past, mostly by using Cordova, which lets us write HTML, CSS, and JS to create cross-platform apps. Cordova works great for the most part, but we discovered that you can only go so far when using web technology to create apps that feel truly native.
Continue reading “Wait. What is React Native Again?”

November Meetup featuring #SmartCityNairobi winners

  • Looking forward to hearing all about #SmartCityNairobi & following along on Twitter!
  • Start a Meetup Group Start a Meetup Group
  • Our events are organized every two months and aim to bring developers, Twitter engineers, and various partners together for technical talks and networking.
  • The meetup is for everyone interested in working with Twitter’s developer products and APIs.
  • Charlie Croom from Twitter will talk about the mobile website we are building in React, our design decisions and features we’re including.

In order to enter our office, you must register your name and email address. Please do so here.
This month, we're excited to have two great talks back at Twitter HQ:
The team from Report Taka, th
Continue reading “November Meetup featuring #SmartCityNairobi winners”