|

WordCamp US 2019 – Just Enough React for WordPress – Shannon Smith

New Block Editor

Discover the Possibilities

  • Block templates
  • Blocks instead of custom fields, shortcodes, etc

How Does the New Block Editor Work?

  • Uses React, JavaScript/JSX
  • Blocks are like plugins
  • There is a Core Layer & Editorial Layer
  • React abstraction is built-in

Cool Stuff

  • Blocks can be reusable
  • Backend Workflow-only blocks
  • Block level locking – you can remove blocks that are not needed.

React

  • Uses JSON literals
  • It’s in the HTML but doesn’t negatively affect the HTML

Templates

  • You can create block templates
  • Can be assigned to existing post types
  • You can have nested templates

Compatibility

Shortcodes

  • Will continue to work as before but contained within a block

Custom Post Types

Metaboxes

  • Can be converted to blocks
  • Can be used in the block editor

Themes

  • You can control things like color(theme color palette and styles in the block editor to ensure that users follow branding/design styles.

Block Styles

  • Blocks can be style to match the site theme.

Block Creation

  • A lot of flexibility
  • You can scaffold out them with the WP-CLI

How to Win at Go

You need to break some things before you can finally have something that is working.

Tips & Tricks

  • Reusable Blocks – You can turn any block into a reusable block, update once and reflected everywhere
  • Block Directory – this is starting and you can get involved in providing direction.
    • You’ll be able to add block apart from themes/plugins so you can design around just the blocks you need

Q&A

  • Blocks are really a backend piece, the front end doesn’t use the React blocks.
  • Can React be used in the frontend? Today it’s only a backend content editing feature.

Similar Posts

  • A Little Bit Of #WCGR With Me Camping

    As I headed off camping with the family this weekend I was choosing what to bring to keep my phone charged. When you are a tent camping family you only have so much room. The charging pack I received for speaking at last year’s #WordCamp Grand Rapids, and the USB conversation dongle from this year made a great compact charging setup.
  • /

    WPGR: Learn about the Developer Tools in your browser

    Firefox Developer Tools – Topher Inspector – look at HTML/CSS behind a web page Responsive Display Mode Console – look for errors (security/resource loading issues) Different results depending on when you open – loading vs loaded Debugger – for JavaScript Style Editor – for changing CSS Performance – monitoring page load performance Network – Storage – Local browser items, page cache, cookies, etc. Chrome Developer Tools – Brian Shortcuts – keyboard commands to open dev tools (CTRL-OPT-I[Mac OS X]/CTRL-SHIFT-I[ChromeOS]) Docking – SHIFT-CMD-D(Mac OS X) / CTRL-SHIFT-D(Chrome OS) Elements (inspector) Styles – Filter allows for viewing specific CSS states (i.e. :hover) Add specific element styles Color Swatch – has a color picker, can save swatches Computed Styles View a visual representation of spacing See the CSS that…
  • / /

    Tuesday Interval Training Run And Virtual 5K

    A big shout out to Automattic for promoting the WWWP5K virtual run and matching donations to your favorite charity. #wwwp5k #HWI #Run4Water #WhyIRun #RiverBankRun Automattic matching donations: http://timn.me/wwwp5k2020 Give the gift of clean water: https://timn.me/2020HWI Also on: MastodonMastodon XX InstagramInstagram
  • / / / /

    Looking Back on 2017, the Year of Firsts

    I don’t recall if I’ve ever written any sort of year-in-review blog post or even social media post, but this year I have had so many firsts that I wanted to reflect on and share my thanks for. Health In the health department I not only reached my initial target goal weight but actually surpassed it, and my second target. I think this year I’ve weighed the least that I have in 26 years. I have always struggled with my weight and living a more healthy lifestyle. I attribute my success primarily to my wife, and also to the encouragement of many friends and family. I also had to have a lot of self-determination as well, but that was only had by seeing the impact my…
  • /

    WordCamp US 2019 – Technical SEO Checklist: How to Optimize a WordPress Site for Search Engine Crawlers – Pam Aungst

    Why SEO is Important For search engines Why Technical SEO is Super Important Search Engines: Crawl / Index / Rank If technical SEO isn’t working search engines can’t crawl/index/rank. Visitors wont’ find your site. The Ultimate SEO Checklist Basic/Traditional Items Domain & CMS Run by a well designed platform Meta Robots Search Engine Visibility checkbox Cross-Check Plugin Robots.txt Exclude Irrelevant Content – Yoast SEO Implement Cross-Check’s Search Engine Visibility Monitoring XML Sitemap Dynamic XML Sitemap from Yoast SEO Submit XML index to Google Search Console and check for errors Search Console monitors for crawling errors Should be dynamically generated and updated Design Do not use “one page” designs, they don’t work well for SEO Breadcrumbs Schema markup can be added for search crawlers to follow…
  • WordCamp GR 2017 – Plugins: The WP Box of Chocolates – Stacy Vanden Heuvel

    Stacy Vanden Heuvel – http://www.mtnwebs.net/ (blog) http://mtnwebs.com/ What are they? Premanufactured code that adds function and features. 51,000+ plugins available today. Dropped into a site. There is a plugin or everything. Why does anyone care? Makes website building easier. How do you choose? How many active installs? Does it have reputable developers? When was it last updated? What are the ratings? – need to take these with a grain of salt Is it compatible with the current release? Does it fit with exactly what you need it to do? Plugin Examples WP-Polls Auto Terms of Service and Privacy Policy – doesn’t support translations WPFront Scroll – scroll-to-top button Hummingbird – page speed optimization, gives you an optimization report WP Smush – image optimization, optimizes as you upload,…

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

To respond on your own website, enter the URL of your response which should contain a link to this post's permalink URL. Your response will then appear (possibly after moderation) on this page. Want to update or remove your response? Update or delete your post and re-enter your post's URL again. (Find out more about Webmentions.)