Release 1.0.0-alpha.43 · kmagiera/react-native-gesture-handler · GitHub

  • You signed in with another tab or window.
  • Reload to refresh your session.
  • You signed out in another tab or window.
  • Reload to refresh your session.

GitHub is where people build software. More than 27 million people use GitHub to discover, fork, and contribute to over 80 million projects.
Continue reading “Release 1.0.0-alpha.43 · kmagiera/react-native-gesture-handler · GitHub”

Celebrating a Joyful JavaScript Certification

  • Although I had taken few online courses on JavaScript, I always lacked confidence in my JavaScript skills, because I had learned the language from a variety of sources and felt that there were several gaps in my JavaScript understanding.
  • Furthermore, as far as my freelance programming experience goes, I can tell that JavaScript developers are always busy, since they get the most freelance jobs (when classified by programming languages for web development).
  • However, since I already had a decent experience with JavaScript, I didn’t want to go through another course to earn a certificate (furthermore, I already had such certificates).
  • So I soon loaded up the JavaScript certification exam page for details about cost and exam process.
  • The first part of the exam was a theoretical test containing 20 single and multiple choice questions, each of which had a time limit of 1.5 minutes.

This post tells the story of my JavaScript certification preparation and success.
Continue reading “Celebrating a Joyful JavaScript Certification”

Container Components – Learn React with chantastic – Medium

Container Components:  by @learnreact #ReactJS #JavaScript #WebDev

  • Container ComponentsOne React pattern that’s had the impact on my code is the container component pattern.
  • So, you put everything in one place: – class CommentList extends React.Component { – this.state = { comments: [] }; – – componentDidMount() { – fetchSomeComments(comments = – this.setState({ comments: comments })); – } render() { – return ( – ul – {this.state.comments.map(c = ( – li{c.body}—{c.author}/li – ))} -…
  • class CommentListContainer extends React.Component { – state = { comments: [] }; componentDidMount() { – fetchSomeComments(comments = – this.setState({ comments: comments })); – } render() { – return CommentList comments={this.state.comments} /; – } – }Now, let’s rework CommentList to take comments as a prop.
  • const CommentList = props = – ul – {props.comments.map(c = ( – li{c.body}—{c.author}/li – ))} – /ulExample Codepen – So, what did we get?We actually got a lot… – We’ve separated our data-fetching and rendering concerns.
  • We’ve made our CommentList component reusable.

Say you have a component that displays comments. You didn’t know about container components. So, you put everything in one place: Your component is responsible for both fetching data and presenting…
Continue reading “Container Components – Learn React with chantastic – Medium”

Up and Running with Universal Components and Expo in the Trenches

Up and Running with Universal Components and Expo in the Trenches  #reactnative

  • Up and Running with Universal Components 🎤 – – Kurtis Kemple and Samantha Bretous and Samantha are joining us this month from NYC!
  • Universal components are a great way to maximize impact while minimizing the amount of repeated work.
  • Join Samantha and Kurt as they walk through what universal components are, what are some best practices, and most importantly, what are some pitfalls to avoid!
  • Kurt is a React / React Native / GraphQL enthusiast 🙌 Co-organizer of @NYCGraphQL 🗓 Technical Writer 🖋 Mentor 🎓 Fine Dancer🕺 – – – – Samantha is a Software Engineer at MLS blending the gap between web and mobile development through universal components.
  • Now, he’s trying to build and maintain a cross platform native app using only JavaScript.

We’re back in April with some more React Native awesomeness!🎤 Up and Running with Universal Components 🎤Kurtis Kemple (https://twitter.com/kurtiskemple) and Samantha Bretous (https://twitter.com/sam
Continue reading “Up and Running with Universal Components and Expo in the Trenches”

Understanding React — Component life-cycle – Bartosz Szczeciński – Medium

Understanding React — Component life-cycle

☞ 

#reactjs #JavaScript

  • In all other instances remember to use this.setState – DO – set initial stateif not using class properties syntax — prepare all class fields and bind functions that will be passed as callbacksDON’T – cause any side effects (AJAX calls etc.)componentWillMountThis is a somehow special case — componentWillMount does not differ much from constructor…
  • DO – update state via this.setStateperform last minute optimizationcause side-effects (AJAX calls etc.) in case of server-side-rendering onlyDON’T – cause any side effects (AJAX calls etc.) on client function will be called in each update life-cycle caused by changes to props (parent component re-rendering) and will be passed an object…
  • DO – use for increasing performance of poor performing ComponentsDON’T – cause any side effects (AJAX calls etc.)call nextState)If the shouldComponentUpdate function is not implemented, or it decided that the component should update in this render cycle, another life-cycle function will be called.
  • == this.props.myProp) { – // this.props.myProp has a different value – // we can perform any operations that would – // need the new value and/or cause side-effects – // like AJAX calls with the new value – this.props.myProp – } – }DO – cause side effects (AJAX calls etc.)DON’T…
  • DO – cause side effects (AJAX calls etc.)DON’T – call this.setState as it will result in a re-renderAn exception to the above rule is updating the state based on some DOM property which can be only computed once a component has re-rendered (e.g. position / dimensions of some DOM nodes)….

React provides developers with many methods or “hooks” that are called during the life-cycle of an component, which allows us to update the UI and application state. Knowing when to use which of them…
Continue reading “Understanding React — Component life-cycle – Bartosz Szczeciński – Medium”

Setting up React Project with Parcel zero configuration approach.

Setting up React Project with Parcel zero configuration approach.

☞ 

#Reactjs

  • Setting up React Project with Parcel zero configuration approach.Learn how to configure React with Parcel module bundler in this brief tutorial – Parcel is a new module bundler for Javascript applications.
  • Setting up React with Parcel bundler: HTML and friendsBefore processing any HTML in webpack you must install two dependencies: the HTML plugin and the HTML loader.
  • Setting up React with Parcel bundler: setting up BabelReact components are mostly written in Javascript ES6.
  • As with webpack, Parcel should transform raw React components into a meaningful Javascript bundle.
  • Setting up React with Parcel bundler: wrapping upParcel is a new module bundler for Javascript that promises blazing fast speed and zero configuration bundling.

Parcel is a new module bundler for Javascript applications. It offers faster compilation times and zero configuration bundling. Webpack is a powerful tool. I know, webpack can’t be compared to Gulp…
Continue reading “Setting up React Project with Parcel zero configuration approach.”

React Native Debugging tips and tricks – codeburst

#reactnative Debugging tips and tricks – codeburst

  • Starting at the beginningThe first step in getting the devtools up and running for your app is to hit Cmd+D(iOS) or Cmd+M(Android) while the simulator is open and click ‘Debug JS Remotely’ like so: – As you can see, this should then trigger the React native debugger tab to open…
  • I don’t know what the keyboard shortcut to do this is in Windows is but I’m sure it’s easily Googleable.
  • One thing to bear in mind as regards keeping this debugger open is that if you have to kill your app for some reason and start it again, they may slow down your app a lot when you relaunch it.
  • But, sometimes the Cmd+D/M shortcut doesn’t work when you’re app is launching.
  • React Native recently introduced a copy keyboard shortcut into the simulator, but it doesn’t work perfectly.

You may be wondering why you should learn debugging tools. The truth is that for a lot of cases they are overkill and there are less overwhelming means of finding out where your program is…
Continue reading “React Native Debugging tips and tricks – codeburst”