For #reactjs enthusiasts, I found this pretty cool! #programming #javascript

For #reactjs enthusiasts, I found this pretty cool!

#programming #javascript

  • My love for streaming entertainment dates back to the early days of RealPlayer and the misery of a million codecs.
  • That lead me to think:  is there a good open source component for embedding videos from popular video providers?
  • Let’s check out ReactPlayer, a very simple but useful streaming video player component for ReactJS!
  • Using the ReactPlayer component is really simple: – – ReactPlayer provides a number of options for both general and service-specific playback, also providing a number of event callbacks and even multi-source playback options.
  • ReactPlayer is an awesome utility for embedding popular media sources in your own site.

Continue reading “For #reactjs enthusiasts, I found this pretty cool!

#programming #javascript”

Implement Blob support for XMLHttpRequest · facebook/react-native@be56a3e · GitHub

  • + * – – – – – – – – – – – – – + * @providesModule BlobManager – – – – – – – – – – – – – + * @flow – – – – – – – – – – – – – + *…
  • : BlobOptions, – – – – – – – – – – – – – + ): Blob { – – – – – – – – – – – – – + const blobId = uuidv4(); – – – – – – – – – – – – -…
  • + */ – – – – – – – – – – – – – + static release(blobId: string): void { – – – – – – – – – – – – – + – – – – – – – – – – – + if (BlobRegistry.has(blobId)) {…
  • + */ – – – – – – – – – – – – – + static addWebSocketHandler(socketId: number): void { – – – – – – – – – – – – – + – – – – – – – – – – – + } – -…
  • + */ – – – – – – – – – – – – – + static sendOverSocket(blob: Blob, socketId: number): void { – – – – – – – – – – – – – + socketId); – – – – – – – – – – – -…

react-native – A framework for building native apps with React.
Continue reading “Implement Blob support for XMLHttpRequest · facebook/react-native@be56a3e · GitHub”

Articles On- Rise of #ReactJS #Development in 2018 – React JSX

Articles On- Rise of #ReactJS #Development in 2018 - React JSX

  • With React JSX it becomes extremely easy to code UI test cases due to its Virtual DOM system which is implemented in the JSX.
  • Also, with the help of React JSX you can use and reuse components throughout the applications.
  • The implementation of JSX provides a number of advantages through React which make it such a powerful tool for User Interface creation.
  • JSX is one of the unique features of React which is making it so popular.
  • It is evident that using JSX through React does not only provide various advantages but the changeover from other UI development platform like HTML to JSX is extremely easy and convenient.

React.js is what you need to develop mobile apps with awesome UI/UX. Learn React.js development whole process by industry experts to make your dream project.
Continue reading “Articles On- Rise of #ReactJS #Development in 2018 – React JSX”

React.js: The Hard Parts

State Management without #Redux:  by #ReactJS

  • If a user interacts with your application or refreshes the page, then we’ll look up state at that moment and rebuild the page.
  • In dynamic apps, like ones built using React, state change has to be dealt with immediately.
  • Managing state can get complicated if each component has some state.
  • Interaction with the components, like a mouse click, trigger these functions to update state.
  • For example to implement retweets: – – When the state is updated, the props will change too and render the child components again.

I am a full-stack software developer and passionate educator. I have been building for the web for almost two decades.
Continue reading “React.js: The Hard Parts”

JavaScript: The beauty of arrow functions – LeanJS – Medium

JavaScript: The beauty of arrow functions  #react #arrowfunctions #es6 #javascript #reactjs

  • JavaScript: The beauty of arrow functionsArrow functions are an awesome ES6 language feature for a number of reasons, but we believe there are 3 key reasons they really shine:They are more conciseThey allow for implicit returnsThey get their “this” value from the context, meaning it comes from the callerLet’s look at some ES5 vs ES6 code:In the above code example we compare the ES5 and ES6 way of grabbing some values from an array of objects.More ConciseThe most striking thing is the amount of code, less code means less probability of introducing errors.
  • Secondly it’s obvious that our arrow function has improved readability here, it’s also more declarative.
  • Being concise and declarative with code is especially important when working in teams, it saves time and improves outcomes.Implicit returnsThe ability to return values implicitly builds upon the first point, we no longer need to add extra syntax such as the {} and return keyword if they are not needed.
  • So context is simply the one who is calling the function.If this isn’t clear, have a play with the code yourself here: why is getting the “this” value from the context useful?Before we had to bind our functions explicitly to make sure they had the right “this” value:We can of course continue doing this, but now we have a more concise way of doing the same thing:Summing upUsing arrow functions allows us to use a more concise and declarative syntax while eliminating the need for us to bind them explicitly.
  • There are of course a few more things to know about arrow functions which are beyond the scope of this post.

Arrow functions are an awesome ES6 language feature for a number of reasons, but we believe there are 3 key reasons they really shine: In the above code example we compare the ES5 and ES6 way of…
Continue reading “JavaScript: The beauty of arrow functions – LeanJS – Medium”

Simple Guide to Creating a Single Page App with React Router

  • Below, you’ll see dom appended to signify the web version.npm install –save react-router-domUsing ES6 modules, you can import the components that we need:import { BrowserRouter, Route, Link } from ‘react-router’;// wrap your App component in the BrowserRouter BrowserRouter App //BrowserRouterWrapping your application in the BrowserRouter component will give your child components access to props from the native browser history API which allows the components to modify and match against url paths.
  • With that in mind, we can move on to the Route and Link components.RouteEach Route component will have a prop that represents the path to match against.
  • For example:BrowserRouter div Route exact path=”/” component={Home} / Route path=”/about” component={AboutMe} / Route path=”/contact” component={Contact} / Route path=”/projects” component={Projects} / /divBrowserRouter /***Take note of the fact that you’ll need to wrap any routes up in a div as the BrowserRouter component can only have one child node.Above, you’ll see that we have three routes each with a path and a component prop.
  • Remember that these aren’t routes in terms of static routing — they are simply conditionally rendering based on a pattern match from the location in the browser’s native APIs.LinkBecause we don’t want the page to load when we click on a link to a different part of the page, we can’t use your standard anchor tags for links.
  • The Link is set up how you’d expect following the conventions that we’ve already seen.BrowserRouter div Link to=”/”Home/Link Link to=”/aboutAbout Me/AboutMe Link to=”/contactContact/Contact Link to=’/projectsProjects/Projects Route exact path=”/” component={Home} / Route path=”/people” component={People} / Route path=”/contact” component={Contact} / Route path=”/projects” component={Projects} / /divBrowserRouter /There’s also a NavLink component that has useful properties for showing which link is currently active, so that’s something to explore if you’re looking for that kind of styling.That’s it!

Here’s a quick setup guide to creating a basic single page app with React. The goal of this post is not to get into the finer details of React Router, but rather to get you off the ground. As always…
Continue reading “Simple Guide to Creating a Single Page App with React Router”

Note App Deployed — What have I learned ? – Comfort Ajala – Medium

my first react/js template app has been deployed! 
#reactjs #coding #Webdesign #webdev

  • Screenshot of the application: can be found under noteapp.ajalacomfort.comFew weeks ago, I embarked on a project based learning journey to improve my practical knowledge in web development.
  • So I began building a CRUD application with user authentication and authorization.
  • Thus basically a full-stack application on JS.Today I am proud to say the app is deployed on Heroku with the database hosted on mLab.
  • Yes the app is a very simple CRUD app, but it taught me a lot more than the 300 pages books I have read on JS.I have been drawn to project based learning as a result of this project and in this post I would like to list what I have learned as well as, what I plan to do next in my journey.You can find the application under: I have learnedJs Templating — EJSReact.js + ReduxToken based route Authentication and AuthorizationServer Rendering React ComponentsReusing componentsCSS TransitionsNode App DeploymentNoSQL — MongoDBAPI developmentThese are the main points I have understood via this project and I am proud of myself.I plan on creating a progressive web or/and a cross platform version via react-native after correcting a number of flaws in the app functionality and style.
  • Now I know my weaknesses, I will focus on those cracks in my upcoming projects.I am just excited to have an app deployed online for prospective employers to use as a meter instead of mere claims of my abilities in web dev.YT Channel: Ajala ComfortSee ya soon!

Few weeks ago, I embarked on a project based learning journey to improve my practical knowledge in web development. So I began building a CRUD application with user authentication and authorization…
Continue reading “Note App Deployed — What have I learned ? – Comfort Ajala – Medium”

React.js: The Hard Parts

State Management without #Redux:  #ReactJS #Javascript

  • If a user interacts with your application or refreshes the page, then we’ll look up state at that moment and rebuild the page.
  • In dynamic apps, like ones built using React, state change has to be dealt with immediately.
  • Managing state can get complicated if each component has some state.
  • Interaction with the components, like a mouse click, trigger these functions to update state.
  • For example to implement retweets:

    When the state is updated, the props will change too and render the child components again.

I am a full-stack software developer and passionate educator. I have been building for the web for almost two decades.
Continue reading “React.js: The Hard Parts”

React.js: The Hard Parts

  • If a user interacts with your application or refreshes the page, then we’ll look up state at that moment and rebuild the page.
  • In dynamic apps, like ones built using React, state change has to be dealt with immediately.
  • Managing state can get complicated if each component has some state.
  • Interaction with the components, like a mouse click, trigger these functions to update state.
  • For example to implement retweets:

    When the state is updated, the props will change too and render the child components again.

I am a full-stack software developer and passionate educator. I have been building for the web for almost two decades.
Continue reading “React.js: The Hard Parts”

Migrating from Cordova to React Native

Migrating from #Cordova to #ReactNative video tutorial:

  • Cordova and React Native are JavaScript based frameworks for building cross-platform mobile apps.
  • They differ greatly in their approach, with Cordova being embedded web view centric, and React Native being native centric.
  • React Native is just one of a growing number of frameworks for building mobile apps that are truly native after undergoing the build process.
  • This presentation provides a short introduction to both Cordova and React Native, and walks through the process of migrating an example app — a fitness activity tracker — from Cordova to React Native, highlighting strategies, tips, and gotchas along the way.
  • The presentation and full source code for the example app are available at:

Cordova and React Native are JavaScript based frameworks for building cross-platform mobile apps. They differ greatly in their approach, with Cordova being
Continue reading “Migrating from Cordova to React Native”