|

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

  • | |

    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
  • |

    Using WordPress As My Note Taking Tool

    So this past Sunday, in a continued effort to find my replacement note taking tool for Evernote, I decided to give my blog a try as a not taking tool. I have the Android app on my phone and tablet so that step made things fairly easy. For the most part things went very well,…
  • |

    WordCamp US 2019 – Thinking Remotely Through Games – Tammie Lister

    Benefits Dissolve – thought barriers Opens – creativity Types of Play Unoccupied Play – free to think on your own Independant or solitary play Onlooker play – watching others Parrallel play – same time but separate Associative play Team Context Parallel play – same task, in isolation Associative Play – co-op working Co-op Play –…
  • | |

    WordPress DevOps – WordCamp Grand Rapids 2018

    1. Introductions Development History High School 1996 – Personal School Website – image maps with cgi-bin processing written in C 1996 – Davisco Foods International (First Freelance Job) – static HTML site College 2000 – Inspiration Point Christian Camp & Retreat Center – perl for form processing, PHP template-based site Post-College 2002 – Cross Roads…
  • |

    WordCamp GR 2017 – Underscores & Me – Frederick Polk

    Frederick Polk – http://oneblackcrayon.com/ Generate your Underscores Theme: Use a custom build, with the Advanced Options, in order to tailor to your project needs. – https://underscores.me/ Underscores is Pre-built With: Sidebars Custom Logo Comments Featured Images Custom Headers Standard Core Theme Templates (404, comments, archives, header, footer) phpcs Sample Sites: amplifygr.com – Underscores, Visual Composer…

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.)