SlideShare a Scribd company logo
FlowRouter, Components and
Props
by Mukul
Routing
Meteor with
React
React-router
Flow Router
Iron Router
Routing
Meteor with
React
React-router
Flow Router
Iron Router
Components
Add Form
Player Stats
Single Stat
What are we making?
● git clone https://github.com/nodexpertsdev/react-player-stats.git
● cd react-player-stats
● git checkout step-2/routing-components-props
● cd step-2
● meteor npm install
● meteor
Add form Component
import React from 'react';
import { Meteor } from 'meteor/meteor';
export default class AddForm extends React.Component {
constructor(props) {
super(props);
}
render() {
return (
<div className="container">
</div>
);
}
}
Flow Router
● Prerequisite
○ React Layout
● Install Packages:
○ meteor add kadira:flow-router
○ meteor add kadira:react-layout
Flow Router
● Import these packages
○ import { FlowRouter } from 'meteor/kadira:flow-router';
○ import { ReactLayout } from 'meteor/kadira:react-layout';
Flow Router - Routing skeleton
FlowRouter.route( '/stats', {
name: 'stats',
action() {
ReactLayout.render( App, { yield: <Stats /> } );
}
});
FlowRouter.route( '/add-player', {
name: 'add-player',
action() {
ReactLayout.render( App, { yield: <AddForm /> } );
}
});
Flow router, components and props

More Related Content

PPTX
Advanced guide to Quartz plugin
PDF
Sprint 120
PDF
Undoing Things in Git
PDF
GIT - GOOD PRACTICES
PDF
Github git-cheat-sheet
PDF
Git Tricks — git utilities that make life git easier
PDF
Git introduction for Beginners
PPTX
Techoalien git
Advanced guide to Quartz plugin
Sprint 120
Undoing Things in Git
GIT - GOOD PRACTICES
Github git-cheat-sheet
Git Tricks — git utilities that make life git easier
Git introduction for Beginners
Techoalien git

What's hot (20)

PDF
Pipeline interface
PDF
Git flow for daily use
PDF
Git Developer Cheatsheet
PDF
DcATL 2013: Git-Flow for Daily Use
PDF
Git Series. Episode 3. Git Flow and Github-Flow
PDF
Sprint 140
PDF
Sprint 166
PDF
Atlassian git cheatsheet
PDF
Sprint 122
ODP
introduction in version control system
PDF
Git Workshop
PDF
Sprint 168
PDF
Sprint 173
PDF
Sprint 19 report
PDF
The gitflow way
PDF
Git Series. Episode 2. Merge, Upstream Commands and Tags
PDF
Git flow cheatsheet
PPTX
Introduction into Git
PDF
Git Tricks
Pipeline interface
Git flow for daily use
Git Developer Cheatsheet
DcATL 2013: Git-Flow for Daily Use
Git Series. Episode 3. Git Flow and Github-Flow
Sprint 140
Sprint 166
Atlassian git cheatsheet
Sprint 122
introduction in version control system
Git Workshop
Sprint 168
Sprint 173
Sprint 19 report
The gitflow way
Git Series. Episode 2. Merge, Upstream Commands and Tags
Git flow cheatsheet
Introduction into Git
Git Tricks
Ad

Similar to Flow router, components and props (20)

PPTX
Angular 2 Migration - JHipster Meetup 6
PPTX
How to implement multiple layouts using React router V4.pptx
PDF
Universal JavaScript Web Applications with React - Luciano Mammino - Codemoti...
PDF
React for Re-use: Creating UI Components with Confluence Connect
PPTX
Jan 2017 - a web of applications (angular 2)
PPTX
Peggy angular 2 in meteor
PPTX
React workshop
PPTX
Getting Reactive Data
PPTX
2.React tttttttttttttttttttttttttttttttt
PPTX
React with Redux
PDF
Maciej Treder ''Angular Universal - a medicine for the Angular + SEO/CDN issu...
PDF
Evan Schultz - Angular Camp - ng2-redux
PPTX
Meteor
PPTX
Using react with meteor
PDF
Migrating a 1M+ LOC project from AngularJS to Angular
PDF
React js
PDF
Enhance react app with patterns - part 1: higher order component
PDF
Introducing Playwright's New Test Runner
PDF
Using React, Redux and Saga with Lottoland APIs
Angular 2 Migration - JHipster Meetup 6
How to implement multiple layouts using React router V4.pptx
Universal JavaScript Web Applications with React - Luciano Mammino - Codemoti...
React for Re-use: Creating UI Components with Confluence Connect
Jan 2017 - a web of applications (angular 2)
Peggy angular 2 in meteor
React workshop
Getting Reactive Data
2.React tttttttttttttttttttttttttttttttt
React with Redux
Maciej Treder ''Angular Universal - a medicine for the Angular + SEO/CDN issu...
Evan Schultz - Angular Camp - ng2-redux
Meteor
Using react with meteor
Migrating a 1M+ LOC project from AngularJS to Angular
React js
Enhance react app with patterns - part 1: higher order component
Introducing Playwright's New Test Runner
Using React, Redux and Saga with Lottoland APIs
Ad

More from NodeXperts (20)

PDF
ECMA Script
PDF
Apollo Server IV
PDF
React Context API
PDF
Devops - Microservice and Kubernetes
PDF
Introduction to EC2 (AWS)
PDF
Reactive Application Using METEOR
PDF
Apollo server II
PDF
Apollo Server
PDF
Apollo Server III
PPTX
State, Life cycle, Methods & Events
PPTX
Refs in react
PPTX
Introduction to Reactjs
PPTX
Mobile apps using meteor - Part 1
PPTX
Microservice architecture : Part 1
PPTX
Reactive web applications using MeteorJS
PPTX
Improving build solutions dependency management with webpack
PPTX
Meteor workshop
PPTX
Introduction to meteor
PPTX
Introduction to MongoDB
PPTX
Introduction to Node.js
ECMA Script
Apollo Server IV
React Context API
Devops - Microservice and Kubernetes
Introduction to EC2 (AWS)
Reactive Application Using METEOR
Apollo server II
Apollo Server
Apollo Server III
State, Life cycle, Methods & Events
Refs in react
Introduction to Reactjs
Mobile apps using meteor - Part 1
Microservice architecture : Part 1
Reactive web applications using MeteorJS
Improving build solutions dependency management with webpack
Meteor workshop
Introduction to meteor
Introduction to MongoDB
Introduction to Node.js

Recently uploaded (20)

PDF
Design an Analysis of Algorithms II-SECS-1021-03
PDF
T3DD25 TYPO3 Content Blocks - Deep Dive by André Kraus
PPTX
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
PPTX
Introduction to Artificial Intelligence
PDF
EN-Survey-Report-SAP-LeanIX-EA-Insights-2025.pdf
PPTX
ai tools demonstartion for schools and inter college
PDF
Audit Checklist Design Aligning with ISO, IATF, and Industry Standards — Omne...
PDF
Navsoft: AI-Powered Business Solutions & Custom Software Development
PPTX
history of c programming in notes for students .pptx
PPTX
CHAPTER 2 - PM Management and IT Context
PPTX
Operating system designcfffgfgggggggvggggggggg
PPTX
Reimagine Home Health with the Power of Agentic AI​
PDF
How to Choose the Right IT Partner for Your Business in Malaysia
PDF
top salesforce developer skills in 2025.pdf
PDF
PTS Company Brochure 2025 (1).pdf.......
PDF
Internet Downloader Manager (IDM) Crack 6.42 Build 41
PDF
Which alternative to Crystal Reports is best for small or large businesses.pdf
PDF
Internet Downloader Manager (IDM) Crack 6.42 Build 42 Updates Latest 2025
PPTX
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
PDF
Design an Analysis of Algorithms I-SECS-1021-03
Design an Analysis of Algorithms II-SECS-1021-03
T3DD25 TYPO3 Content Blocks - Deep Dive by André Kraus
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
Introduction to Artificial Intelligence
EN-Survey-Report-SAP-LeanIX-EA-Insights-2025.pdf
ai tools demonstartion for schools and inter college
Audit Checklist Design Aligning with ISO, IATF, and Industry Standards — Omne...
Navsoft: AI-Powered Business Solutions & Custom Software Development
history of c programming in notes for students .pptx
CHAPTER 2 - PM Management and IT Context
Operating system designcfffgfgggggggvggggggggg
Reimagine Home Health with the Power of Agentic AI​
How to Choose the Right IT Partner for Your Business in Malaysia
top salesforce developer skills in 2025.pdf
PTS Company Brochure 2025 (1).pdf.......
Internet Downloader Manager (IDM) Crack 6.42 Build 41
Which alternative to Crystal Reports is best for small or large businesses.pdf
Internet Downloader Manager (IDM) Crack 6.42 Build 42 Updates Latest 2025
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
Design an Analysis of Algorithms I-SECS-1021-03

Flow router, components and props