Transcript
Page 1: Developing SLDS Apps with React.js

Developing SLDS Apps with React.js (from the case of Mashmatrix Sheet)

Page 2: Developing SLDS Apps with React.js

Salesforce Lightning Design System (SLDS)

Page 3: Developing SLDS Apps with React.js

Key Point of SLDS

• Only HTML/CSS

• No JavaScript (exception: SVG4Everybody)

• c.f. Bootstrap => jQuery Dependency

Page 4: Developing SLDS Apps with React.js

Dynamic Behavior in SLDS

• Dropdown menu (using :hover CSS pseudo-class)

• Stateful Button

• Otherwise - Do it by your own JavaScript code !

Page 5: Developing SLDS Apps with React.js

Markup is Your Own Responsibility

Page 6: Developing SLDS Apps with React.js

React.js

Page 7: Developing SLDS Apps with React.js

Pack into Component

Page 8: Developing SLDS Apps with React.js

react-lightning-design-system

http://stomita.github.io/react-lightning-design-system/https://github.com/stomita/react-lightning-design-system/

Page 9: Developing SLDS Apps with React.js

Case Study : Mashmatrix Sheet

Page 10: Developing SLDS Apps with React.js

Architecture of Mashmatrix Sheet

ActionCreatorStore

View

State

callrender

Reselect

Action

Redux

Action(async)

• Lightning: @AuraEnabled + enqueueAction• Visualforce: @RemoteAction + VFRemoting• Local: API + JSForce

Page 11: Developing SLDS Apps with React.js

Thanks.