Not Sure how you Should React

Slides:



Advertisements
Similar presentations
React. A library for creating user interfaces. React Renders your UI and responds to events.
Advertisements

Architecture Of ASP.NET. What is ASP?  Server-side scripting technology.  Files containing HTML and scripting code.  Access via HTTP requests.  Scripting.
Introduction to Silverlight. Slide 2 What is Silverlight? It’s part of a Microsoft Web platform called Rich Internet Applications (RIA) There is a service.
NOTE: To change the image on this slide, select the picture and delete it. Then click the Pictures icon in the placeholder to insert your own image. WEB.
CNIT 133 Interactive Web Pags – JavaScript and AJAX JavaScript Environment.
Sustainable SharePoint 2010 Customizations By Bill Keys.
Object Oriented Software Development 9. Creating Graphical User Interfaces.
Trunica Inc. 500 East Kennedy Blvd #300 Tampa, FL Cross Platform Mobile Apps With Cordova and Visual Studio 2015 © Copyright 2015.
Getting started with ASP.NET MVC Dhananjay
Javascript Overview. What is Javascript? May be one of the most popular programming languages ever Runs in the browser, not on the server All modern browsers.
05 | Integrating JavaScript and MVC 4 Jon Galloway | Tech Evangelist Christopher Harrison | Head Geek.
Olmo de Corral Signum Framework Developer #olmocc React.
Wes Preston DEV 202. Audience: Info Workers, Dev A deeper dive into use-cases where client-side rendering (CSR) and SharePoint’s JS Link property can.
CSCI 3100 Tutorial 5 JavaScript & Ajax Jichuan Zeng Department of Computer Science and Engineering The Chinese University of Hong.
Spice up Your Forms and Views
Advanced Topics in Concurrency and Reactive Programming: React
Ramping Up On The SharePoint Framework (SPFx)
From SharePoint to Office 365 Development
1/10/2018 9:33 PM Cloud Roadshow © 2014 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO.
Introduction to.
Build Client-side web parts for Microsoft SharePoint
Angular vs React John
Building Desktop Apps with Node.js and Electron
Branding Without MasterPages, the Future of UX in SharePoint Online
Create beautiful, fast, interactive pages in SharePoint
What's new in the world of SharePoint development and deployment
Creating Lightning Fast Apps Using AngularJS
5/29/2018 1:32 PM Office UI Fabric behind the scenes: Open source Design & Engineering in Office Peter Jahn Senior UX Engineering Manager OneDrive & SharePoint.
Development of Internet Applications jQuery, TypeScript, LESS
Introduction to HTML.
Introduction to Redux Header Eric W. Greene Microsoft Virtual Academy
Use Office UI Fabric React to Build Beauty with SharePoint
The Transition to Modern Office Add-in Development
Presented by Kenny Duenke and Patrick Witbrod
Use Office UI Fabric React to Build Beauty with SharePoint
Creating and Deploying Your First SharePoint Framework Application
Haritha Dasari Josue Balandrano Coronel -
Karina Martinez Jessica Palacios Bryan Bravo Miguel Cayetano
Introduction to Silverlight
Introduction to SharePoint Framework (SPFx)
AngularJS and SharePoint 2013: Lessons Learned from the Trenches
Module 1: Getting Started
Angularjs Interview Questions and Answers By Hope Tutors.
SPA Revolution with WebAssembly and Blazor Rainer Stropek | software
Microsoft Ignite NZ October 2016 SKYCITY, Auckland.
Creating and Deploying Your First SharePoint Framework Application
Spice up Your Forms and Views
Advanced Topics in Concurrency and Reactive Programming: React
Introduction to SharePoint Framework (SPFx)
SPA Revolution with WebAssembly and Blazor Rainer Stropek | software
Modern web applications
15 minute break.
All About Office UI Fabric
Creating Lightning Fast Apps Using AngularJS
Modern web applications
AngularJS and SharePoint I Chris Douglas Senior SharePoint Developer ECS Web:
The SharePoint framework
Build data-driven collection and list apps using ListView in HTML5
Getting started with SharePoint Framework
Web Development Using ASP .NET
Creating Lightning Fast Apps Using AngularJS
An Introduction to JavaScript
11.1 Applets & graphics.
Innovation Co-Lab roots/React
Web Client Side Technologies Raneem Qaddoura
Build’an’Office add-in- using’modern JavaScript tools and techniques
Blazor A new framework for browser-based .NET apps Ryan Nowak
MS Confidential : SharePoint 2010 Developer Workshop (Beta1)
SharePoint Saturday Kansas City October 19, 2019
Create Your First React Application
Presentation transcript:

Not Sure how you Should React Ryan Schouten ZAACT Code and Slides http://bit.ly/SPReactDemo

Ryan Schouten ZAACT Utah SharePoint User Group President Worked with SharePoint for > 10 years I have worked with SharePoint 2003 – 2016 I have worked with ASP.Net for 15 years Microsoft MVP – Office Servers and Services Email : ryan@sharepointknight.com Twitter : @shrpntknight

Tooling Build Process & Tooling Code Editors Gulp-based Build Process NodeJS/NPM SystemJS Webpack TypeScript Build Process & Tooling Visual Studio Code Atom Sublime and more … your choice! Code Editors

Re-Render, Don’t Mutate React Key Components Build Components Re-Render, Don’t Mutate Fast Virtual DOM

React Components Small, reusable widgets of your application UI layout and the UI logic are tightly coupled Can be individual or have a parent/child relationship Use state for storing data within the component Use props to pass data and events to a child component

React Basics Need to reference the React libraries React React-dom Your markup is returned from the render method

Markup in React Added as part of your jsx or tsx Per XHTML standard, React assumes lowercase tags are default html Your components are added as mixed case tags

Demo

Props and State Props State Using props to pass data to your components Props are read-only State State allows us to receive/work with changeable data Set initial state in constructor Do not update directly use setState Updates are merged

Lifecycle constructor() componentDidMount() compononentWillUnmount() Used to set initial state Best Practice don’t load external data here componentDidMount() Used to setup component and load external data compononentWillUnmount() Used for clean up

DOM Events Events we add to our markup are not the standard HTML events Events are camelCased not lowercased like HTML onclick vs onClick You pass in the function to the event handler not a string

Conditional Rendering Several methods Store element as variable Null elements will not be loaded Inline if Must use following syntax Condition && <element> Terniary operator (condition)?<element1 />:<element2 />

List of Items Use the JavaScript map command Object.map((item) => { return <element /> }) Make sure you add a key attribute to help React with rendering and handling changes Object.map((item) => { return <element key={item.ID} /> }) Keys must be unique among siblings

Forms and Output Use onChange event to get the changed values Output content using {}

React and SharePoint Load external resources in your HTML file Load HTML file in content editor Use the SP-PNP-JS library for working with SharePoint data

Thinking in React Break things into reusable components

Demo

OfficeUI Fabric Front end experiences for SharePoint Fonts, icons Colors Components Front end experiences for SharePoint Powers OOB experiences Available out of the box Design web part seamlessly Office UI Fabric React for rich set of reusable controls

Fabric and its sub-projects Fabric Core Core elements of the design language including icons, colors, type, and the grid Fabric React Robust, up-to-date components built with the React framework. Fabric JS Simple, visuals- focused components that you can extend, rework, and build on. ngFabric Community-driven project to build components for Angular-based apps. Fabric iOS Native Swift colors, type ramp, and components for building iOS apps.

Demo