+ All Categories
Home > Documents > Building websites using React.js and WordPress API€¦ · • Connector class between React.js...

Building websites using React.js and WordPress API€¦ · • Connector class between React.js...

Date post: 03-Oct-2020
Category:
Upload: others
View: 4 times
Download: 0 times
Share this document with a friend
19
BUILDING WEBSITES USING REACT.JS AND WORDPRESS API MITKO KOCHKOVSKI @M1TK00 [email protected]
Transcript
Page 1: Building websites using React.js and WordPress API€¦ · • Connector class between React.js class and WP REST API response to process the layout • Build the elements THE OPTIMIZATION

BUILDINGWEBSITESUSINGREACT.JS ANDWORDPRESS

APIMITKO KOCHKOVSKI

@M1TK00

[email protected]

Page 2: Building websites using React.js and WordPress API€¦ · • Connector class between React.js class and WP REST API response to process the layout • Build the elements THE OPTIMIZATION

WHOAMI?

• WordPressDevelopersince2010.

• FounderofWebpigment.

• PluginAuthor.

• WordCamp Traveler.

• Father,HusbandandDoglover.

Page 3: Building websites using React.js and WordPress API€¦ · • Connector class between React.js class and WP REST API response to process the layout • Build the elements THE OPTIMIZATION

WHATAREWEGOINGTOTALKABOUTTODAY

• WhatisReact?

• WhatdoesitmeanforawebsitetorunonReact?

• HowtoimplementReact.js withtheWordPressAPI?

• OryoucangoandlistentoJodieandhertalkaboutBuildingSuccessfulClientRelationshipsinaDigitalAge

Page 4: Building websites using React.js and WordPress API€¦ · • Connector class between React.js class and WP REST API response to process the layout • Build the elements THE OPTIMIZATION
Page 5: Building websites using React.js and WordPress API€¦ · • Connector class between React.js class and WP REST API response to process the layout • Build the elements THE OPTIMIZATION
Page 6: Building websites using React.js and WordPress API€¦ · • Connector class between React.js class and WP REST API response to process the layout • Build the elements THE OPTIMIZATION

REACT.JS

• JavaScriptlibraryforbuildinginterfaces.

Page 7: Building websites using React.js and WordPress API€¦ · • Connector class between React.js class and WP REST API response to process the layout • Build the elements THE OPTIMIZATION

WHATDOESITMEANFORAWORDPRESSWEBSITETORUNONREACT?

• Bespoke!Bespoke!Bespokeeverywhere!

Page 8: Building websites using React.js and WordPress API€¦ · • Connector class between React.js class and WP REST API response to process the layout • Build the elements THE OPTIMIZATION

THEBEGINNING

• FewtutorialsaboutReact.js andRedux

• WordPressAPI

Page 9: Building websites using React.js and WordPress API€¦ · • Connector class between React.js class and WP REST API response to process the layout • Build the elements THE OPTIMIZATION

THEAPPROACH

• React.js andindex.html inseparatedomainforretrievingdata.

• WordPressAPI+ACFProFlexiblefieldforbuildingthepagescontent.

Page 10: Building websites using React.js and WordPress API€¦ · • Connector class between React.js class and WP REST API response to process the layout • Build the elements THE OPTIMIZATION
Page 11: Building websites using React.js and WordPress API€¦ · • Connector class between React.js class and WP REST API response to process the layout • Build the elements THE OPTIMIZATION

THECONFIGURATION

• Domainforassets

• Domainforbackend

• DomainforAPIrequests

• Domainfortheindex.html (www)

• .htaccess maskingofthedomains

Page 12: Building websites using React.js and WordPress API€¦ · • Connector class between React.js class and WP REST API response to process the layout • Build the elements THE OPTIMIZATION

THEIMPLEMENTATION

• Createdallflexiblecontentblocks

• ConnectorclassbetweenReact.js classandWPRESTAPIresponsetoprocessthelayout

• Buildtheelements

Page 13: Building websites using React.js and WordPress API€¦ · • Connector class between React.js class and WP REST API response to process the layout • Build the elements THE OPTIMIZATION
Page 14: Building websites using React.js and WordPress API€¦ · • Connector class between React.js class and WP REST API response to process the layout • Build the elements THE OPTIMIZATION

THEOPTIMIZATION

• <picture>

• Optimizedimagesfordifferentdevices

• Cutting.classand#idnames

• CDN

• RemovedallunnecessarydatafromtheJSONresponse

Page 15: Building websites using React.js and WordPress API€¦ · • Connector class between React.js class and WP REST API response to process the layout • Build the elements THE OPTIMIZATION

THECHALLENGE

• Theloadinganimation

• Formsandvalidation(nonce)throughtheCDN

• SEO– webcrawlers

Page 16: Building websites using React.js and WordPress API€¦ · • Connector class between React.js class and WP REST API response to process the layout • Build the elements THE OPTIMIZATION

THEFRUITSOFOURLABOR

Page 17: Building websites using React.js and WordPress API€¦ · • Connector class between React.js class and WP REST API response to process the layout • Build the elements THE OPTIMIZATION

FUTUREFUNCTIONALITIES

• Offlineaccesstothewebsite.

• Transferringtheimagesasencodeddata.

• Opensourceit.

Page 18: Building websites using React.js and WordPress API€¦ · • Connector class between React.js class and WP REST API response to process the layout • Build the elements THE OPTIMIZATION
Page 19: Building websites using React.js and WordPress API€¦ · • Connector class between React.js class and WP REST API response to process the layout • Build the elements THE OPTIMIZATION

THANKYOU

• Mitko Kochkovski

• @m1tk00&@webpigment

[email protected]


Recommended