WHOAMI?
• WordPressDevelopersince2010.
• FounderofWebpigment.
• PluginAuthor.
• WordCamp Traveler.
• Father,HusbandandDoglover.
WHATAREWEGOINGTOTALKABOUTTODAY
• WhatisReact?
• WhatdoesitmeanforawebsitetorunonReact?
• HowtoimplementReact.js withtheWordPressAPI?
• OryoucangoandlistentoJodieandhertalkaboutBuildingSuccessfulClientRelationshipsinaDigitalAge
REACT.JS
• JavaScriptlibraryforbuildinginterfaces.
WHATDOESITMEANFORAWORDPRESSWEBSITETORUNONREACT?
• Bespoke!Bespoke!Bespokeeverywhere!
THEBEGINNING
• FewtutorialsaboutReact.js andRedux
• WordPressAPI
THEAPPROACH
• React.js andindex.html inseparatedomainforretrievingdata.
• WordPressAPI+ACFProFlexiblefieldforbuildingthepagescontent.
THECONFIGURATION
• Domainforassets
• Domainforbackend
• DomainforAPIrequests
• Domainfortheindex.html (www)
• .htaccess maskingofthedomains
THEIMPLEMENTATION
• Createdallflexiblecontentblocks
• ConnectorclassbetweenReact.js classandWPRESTAPIresponsetoprocessthelayout
• Buildtheelements
THEOPTIMIZATION
• <picture>
• Optimizedimagesfordifferentdevices
• Cutting.classand#idnames
• CDN
• RemovedallunnecessarydatafromtheJSONresponse
THECHALLENGE
• Theloadinganimation
• Formsandvalidation(nonce)throughtheCDN
• SEO– webcrawlers
THEFRUITSOFOURLABOR
FUTUREFUNCTIONALITIES
• Offlineaccesstothewebsite.
• Transferringtheimagesasencodeddata.
• Opensourceit.