ASP.NET Core Basics: React with an API – Eric L. Anderson

#aspNETCore basics: build a #ReactJs app with an #API

  • This post is going to cover adding a React project to the existing using the React template that is now built into Visual Studio.
  • The goal for the React project in this initial post will be to connect to the contacts API and download a list of contacts and render that to the screen.
  • The following is the resulting React project in the context of the full solution.
  • Next, make sure and run npm install from a command prompt in the React project’s directory to ensure all the npm packages get restored.
  • Since this is my first time working with React I took the  FetchData.tsx file and copied the contents and used that as the starting point for my contact list.

In the past, I have done some exploration on Aurelia and Angular via the ASP.NET Core Basics series. This post is going to take a similar approach as I start doing some exploration with React. The code for the project will be in the same repo as the previous basics examples and will be utilizing the same API to pull data. The code before adding the React project can be found here.
Continue reading “ASP.NET Core Basics: React with an API – Eric L. Anderson”

React v15.5.0

What do you think about React v15.5.0?



#ReactJS #React15 #JavaScript #Developer #WebDev

  • In 15.5, instead of accessing from the main object, install the package and import them from there:

    The codemod for this change performs this conversion automatically.

  • You may also consider using Flow to statically type check your JavaScript code, including React components.
  • Later, classes were added to the language as part of ES2015, so we added the ability to create React components using JavaScript classes.
  • Along with functional components, JavaScript classes are now the preferred way to create components in React.
  • The codemod for this change attempts to convert a component to a JavaScript class, with a fallback to if necessary.

It’s been exactly one year since the last breaking change to React. Our next major release, React 16, will include some exciting improvements, including a complete rewrite of React’s internals. We take stability seriously, and are committed to bringing those improvements to all of our users with minimal effort.
Continue reading “React v15.5.0”

Converting a React App to React Native – Gwendolyn Faraday – Medium

Converting a React App to React Native  #reactnative #react #reactjs

  • Converting a React App to React NativeI have been working on a lot of mobile projects lately — including Cordova, PhoneGap, React Native, some Ionic and Swift — but I have to say, React Native is by far the best experience in mobile development I have had so far.
  • It shares the same workflow as a React application for the web which is pretty easy to reason about and find where things are quickly.Now I am building an app to gamify recycling in Indiana.
  • Since the web app is in React, I figured it would be easier to build the Native version in iOS and Android at the same time using React Native.Here are some mockups to give you an idea.
  • (I changed the menu from the right side to the left side after this)Setting Up the React Native AppWhere React Native outdoes React is on it’s simple set up for apps.
  • That was pretty quick and easy —I just installed a few modules and wrote a minimal amount of code.List ViewsMost of the components I made I was able to copy from my web app and just update the UI.For this app, I have an ever-growing array of various characters that I wanted to display in a scrollable list on mobile.

I have been working on a lot of mobile projects lately — including Cordova, PhoneGap, React Native, some Ionic and Swift — but I have to say, React Native is by far the best experience in mobile…
Continue reading “Converting a React App to React Native – Gwendolyn Faraday – Medium”

How to enable syntax highlighting, eslinting, auto completions in vim for react development?

Enable syntax highlighting, eslinting, auto completions in vim for #ReactJS development:

  • npm install –save-dev eslint npm install –save-dev babel-eslint npm install –save-dev eslint-plugin-react
  • Now integrate ESLint with Syntastic let g:syntastic_javascript_ checkers = [‘eslint’]
  • Another solution is – Define a npm script in your package.json “eslint”: “eslint -c .
  • We are invoking linting via npm script from vim.
  • To install from within vim, use the commands below.

Read the full article, click here.


@ReactiveConf: “Enable syntax highlighting, eslinting, auto completions in vim for #ReactJS development:”


How to enable syntax highlighting, eslinting, auto completions in vim for react development? this tutorial to setup vim for React.Js development in depth…


How to enable syntax highlighting, eslinting, auto completions in vim for react development?

Testing a React project with Karma and Webpack

Test a #ReactJS project with Karma and Webpack:

  • The plugins section specifies that Karma should run the karma-webpack, karma-jasmine and karma-chrome-launcher plugins.
  • karma-chrome-launcher – opens up an instance of Chrome when we run the tests.
  • The command line interface for Karma needs to be installed globally.
  • javascript , karma , react , webpack
  • karma-jasmine – the Jasmine provider so that Karma can understand the results of our tests.

Read the full article, click here.


@ReactiveConf: “Test a #ReactJS project with Karma and Webpack:”


A quick guide to testing Webpack-generated React bundles with Karma.


Testing a React project with Karma and Webpack