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”