How to build a server-rendered React app with Next & Express

  • Next, open up your package.json and replace your script section with this: – Run the npm run dev command, you should get an error like : – next Couldn’t find a `pages` directory.
  • Please create one under the project rootThis is because Next uses the pages directory and the files in them to map its routes.
  • Look at this route below, This helps us to achieve clean URLs as discussed in the paragraph above: – By default, it’s easy to use query strings in Next, but as usual, you want to keep your URLs clean, so you opt for something like: /p/2 rather than /p?id=2.
  • In the code above, we use the popular express routing to define such routes, then we pass the page that should be loaded and the id as a query param to the main Next app.
  • First, create a file called next.config.js in the root of your app and add the following content: – Note: In the setup above, only the index page would be exported as it is the only route we have specified in the PathMap.What if we want to add more pages?

How to build a server-rendered React with Next & Express (plus discussion on why you server-side rendering and customer server APIs.
Continue reading “How to build a server-rendered React app with Next & Express”

Taking Gatsby for a spin

Taking Gatsby for a spin  #webdev #javascript #reactjs #Flexi_IT

  • It’s not that I really need a new tool to create static sites, it’s just that every developer tweeting about Gatsby seems to think it’s the most exciting thing on the web since they learned they could combine the and tag.
  • Here are some of the important features of Gatsby: – – GatsbyJS is based on React which means that you’ll be writing almost everything in JavaScript / JSX.
  • If you already like React, you’ll most definitely enjoy creating static sites with Gatsby.
  • Gatsby comes with plugins to pull in data from several APIs, CMS systems and local files.
  • PRPL + the gatsby offline plugin mean that your site will be considered a PWA, will load insanely fast on any device and scores great in Google lighthouse.

A short write-up on Gatsby, a static site generator based on React
Continue reading “Taking Gatsby for a spin”

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 Native — first impressions – Real Life Programming – Medium

React Native — first impressions  #react #softwaredevelopment #reactnative #reactjs

  • Right now QuotesKeeper is already in AppStore and we’ll be posting updated thoughts about React Native soon.Some time ago at we started a project to build 3 apps with 3 devs in 30 days — the one month project.
  • Most of the knowledge you have about components, lifecycle, state, props, mixins, etc. can be used in your React Native project.
  • Just like you would do in regular React app.There are plenty of libraries ready to be used by your project if any native component is missing.
  • Also built-in React Native list component start scrolling very slow when you have so many elements.
  • You really need to test things out if you plan to work on large datasets.SummaryTo sum things up — would I use React Native in my next project?

First thoughts about React Native after more than a month of iOS app development. Good and bad sides of building your app with React Native.
Continue reading “React Native — first impressions – Real Life Programming – Medium”


Quotes Keeper & #ReactNative

  • create an app with native technologies
  • We can’t wait to share actual screens from the app development with you.
  • We’ll give the whole impression after we finish development, so stay tuned.
  • Everything has already started with our second announced project – Quotes Keeper.
  • React Native promise shorter development time with almost no drawbacks since it uses native components under the hood.

Good Morning Ladies and Gentlemen.
Continue reading “OneMonthProject”

ReactJS June 2016

Just finished slides for my talk at ReactJS Barcelona meetup!

  • Start a Meetup Group Start a Meetup Group
  • We are the first meetup group in Barcelona about Facebook React.
  • In the talk, I’ll talk about virtual rendering in React and how react-virtualized library allows us to use it effectively.
  • But if you still be on the waitlist at the time of the event, don’t be upset, we’re still planning to have a live-stream.
  • Come, learn, and share your react experience!

Read the full article, click here.

@dmitryzaets: “Just finished slides for my talk at ReactJS Barcelona meetup!”

After a long wait, we have a new React event. It will be hosted in Redbooth office and there will be free beers.
We have 2 planned talks:
Intro to react-virtualized
by @edulan
React is an awesome libr

ReactJS June 2016