The Official Microsoft ASP.NET Site

RESTful Web services with  Core
☞ 
#JavaScript #React #reactjs #es6

  • The product(s) you are about to install leverage the Web Platform Installer (WebPI) for installation.
  • By downloading and using the Web Platform Installer (WebPI), you agree to the license terms and privacy statement for WebPI.
  • This installer will contact Microsoft over the Internet to retrieve product information.
  • WebPI uses the Microsoft Customer Experience Improvement Program (CEIP), which is turned on by default, see privacy statement for more information.
  • To view which software uses CEIP, see here.

Home of the Microsoft ASP.NET development community. Download Visual Studio, post to the forums, read ASP.NET blogs and learn about ASP.NET.
Continue reading “The Official Microsoft ASP.NET Site”

Should You Truly Never Use var? – John Wolfe – Medium

Should You Truly Never Use Var?  #ecmascript6 #ydkjs #javascript #variables #react #reactjs

  • No error is thrown if you declare the same variable twice using var (conversely, both let and const will throw an error if a variable is declared twice)2.
  • So using var in this context would require a situation in which a variable declared inside a function would need to be used in the global scope.
  • I conducted a quick search on the Internet revealed that Jslint.com and Jshint.com, and did not raise an issues with the use of var as a variable declaration.
  • Kyle Simpson, author of You Don’t Know JS, and all-around Javascript guru, in this article, has argued for a possible case for var.
  • Simpson argues that:“There are going to be places in real world code where some variables are going to be properly scoped to the entire function, and for those variables, var is a better signal”He provides this code block to illustrate his point:Essentially, Simpson is arguing that while changing var with…

Some controversy in the Javascript community has emerged over this classic variable declaration. So, are the E6 purists correct and we should forever delegate var to the dustbin? This blog post will…
Continue reading “Should You Truly Never Use var? – John Wolfe – Medium”

Express more tests via public API · Issue #11299 · facebook/react · GitHub

  • Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
  • Already on GitHub?
  • Sign in to your account

react – A declarative, efficient, and flexible JavaScript library for building user interfaces.
Continue reading “Express more tests via public API · Issue #11299 · facebook/react · GitHub”

React Router DOM v4 Tutorial (with Examples) • techiediaries

#React Router DOM v4 Tutorial (with Examples)  #reactjs #javascript #Programming #coding

  • The < Route > component is one of the most useful components of React Router v4 and the idea behind it is simple, wherever you want to render something when only there is a match with the location’s path you can use a Route component.
  • We can just append the name to be used for the variable plus a colon : to the end of the route’s path, for example: – – When there is a path match an object which has the following properties will be created and passed to the component: – -…
  • First we import the necessary routing components such as Route and BrowserRouter – – Next we create the base layout component, besides common HTML tags we also use React Router v4 components Link and Route: – – Next we create our pages: – – And finally we create the App…
  • In our example app we used the prop exact in the Route for component HomePage – – That’s because React Router v4 uses inclusive routing instead of exclusive routing used by React Router v3 so without exact property the home component will be rendered with all other components, for example…
  • You can also navigate inside your React application using methods from the history object, for example: – – Which are equivalent to: – – Whenever you want to redirect to another location, you can place component which is when rendered will redirect to the location specified in to prop that…

In this tutorial we are going to get you started with react-router-dom using an example React application showing you how to use different concepts such as Link and NavLink for creating links (instead of anchors) in the React way, Switch and exact for enabling exclusive routing and browser routing history.
Continue reading “React Router DOM v4 Tutorial (with Examples) • techiediaries”

How to use React Lifecycle Methods » Andreas Reiterer

How to use #ReactJS Lifecycle Methods:  by @a_reiterer #JavaScript #Code

  • React components have several “lifecycle methods” that allow us to execute actions (e.g.: fetching data from a server) at particular times.
  • There are three particular stages in the lifecycle of a component, that are important for our lifecycle methods, which I will explain: – – When React creates an instance of a component and inserts it into the DOM (mounting), the following methods are called: – – If props or state…
  • That process is called unmounting and means that the following method is called: – – I hope I could give you a short overview of the life of a React component and the calling order of lifecycle methods.
  • Some people suggest to use it for doing some configuration of the root component that you can only do at runtime (e.g.: setting up a Firebase connection) – – Whenever this method is called, React has already rendered our component and put it into the DOM.
  • This means, it could be possible that the method returns false but React still decides to re-render the component.

Use React lifecycle methods to perform actions on mount, update and unmount of a component. Learn more about e.g. componentDidMount and when to use it
Continue reading “How to use React Lifecycle Methods » Andreas Reiterer”

Real World React Native Animations from @browniefed on @eggheadio

Real World React Native Animations - #react course by @browniefed

  • In this course we’ll explore how to create many popular animated concepts in applications across web and mobile applications.
  • We’ll look at both simple, complex, and subtle interactions that you can use to enhance your React Native application.
  • This course should empower you to look at an animation in an application, break down the effect, and rebuild it in your own application.
  • The ultimate goal is to show how using the basic Animated calls we can build out effective and complex animations that take your application to the next level.

In this course we’ll explore how to create many popular animated concepts in applications across web and mobile applications. We’ll look at both simple, complex, and subtle interactions that you can use to enhance your React Native application.
This course should empower you to look at an animation in an application, break down the effect, and rebuild it in your own application.
The ultimate goal is to show how using the basic Animated calls we can build out effective and complex animations that take your application to the next level.

Continue reading “Real World React Native Animations from @browniefed on @eggheadio”

What’s New With Server-Side Rendering in React 16 – Hacker Noon

What’s New With Server-Side Rendering in #ReactJS 16:  by @xander76 #JavaScript #NodeJS

  • Naturally, this feature is also supported by React 16’s server-side rendering.So, you can now server-render components that look like this:class MyArrayComponent extends React.Component { render() { return [ div key=”1″first element/div, div key=”2″second element/div ]; }}class MyStringComponent extends React.Component { render() { return “hey there”; }}class MyNumberComponent extends React.Component {…
  • To learn more about this feature, read Dan Abramov’s post on the React blog about the change.React 16 SSR Doesn’t Support Error Boundaries or PortalsThere are two new features in the React 16 client-side renderer that are unfortunately not supported in the server-side renderer: Error Boundaries and Portals.
  • If for any reason there’s a mismatch, React raises a warning in development mode and replaces the entire tree of server-generated markup with HTML that has been generated on the client.In React 16, though, the client-side renderer uses a different algorithm to check that the server-generated markup is correct.
  • And when the client-side renderer in React 16 detects a markup mismatch, it only attempts to change the HTML subtree that doesn’t match, rather than the entire HTML tree.Generally, this change shouldn’t have much effect for end users, except for one fact: React 16 doesn’t fix mismatched SSR-generated HTML attributes…
  • This performance optimization means that you will need to make extra sure that you fix any markup mismatch warnings you see in your app in development mode.React 16 Doesn’t Need To Be Compiled For Best PerformanceIn React 15, if you used SSR straight out of the box, performance was less…

There are lots of exciting new bits (most notably the Fiber rewrite), but personally, I’m most excited about React 16’s many improvements that have been made to server-side rendering. Let’s take a…
Continue reading “What’s New With Server-Side Rendering in React 16 – Hacker Noon”