|

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

  • /

    WordCamp GR 2019 – Confidently Testing WordPress – Steve Grunwell

    https://stevegrunwell.github.io/confidently-testing-wordpress/#/ Testing Fundamentals Automated Testing Reduces time + chance of human error Easily reproducible Gateway to CI/CD Test Types Unit – Test the smallest possible unit of an app. Often a single function Integration – How individual components interact End-to-End(E2E) – An entire path through an application Automated Testing Pyramid ROI for Testing System Under Test (SUT) The system we’re currently testing: A single method A class A whole feature WordPress Testing is Complicated Tightly-coupled system Difficult to test anything in true isolation Testing Toolbox PhpUnit – https://phpunit.de/ Structure Test Suite – Collection of test classes Test Class (class) – Collection of test methods Test Case (method) – A single scenario to be tested Assertions True or False Equality Verify Contents – contains, regular expression…
  • / /

    WordCamp US 2019 – Code Like A Writer – Alex Ball

    Writing Principles Punctuation Saves Lives Separate your metaphors separate your concerns making good comments Coding Principles Syntax Form – code formatting Spellcheck – code linting DRY – Don’t repeat yourself Redundant words just take up time Code is Poetry Being creative Clean and concise Doing as much as it can with as little as possible In Stories Someone Usually Dies in the End In AJAX function wp_die() at the end.
  • / / / /

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

    WordPress Meetup 3/21/19

    Show & Tell WPRig – Morten Rand-Hendrickson (to be next guest speaker) Bold Grid Cloud WordPress Repo Testing – WordPress Theme/Plugin Tester Poopy.Life – Temporary WordPress Installs BrowserStack – Website/Browser Testing Service Grav – Static Site CMS Statamic – Static Site Generator Hugo – Static Site Generator Strattic – Static Site Generator for WordPress Caldera Forms – WordPress Form Generator https://www.simplystatic.co/ https://www.hardypress.com/ WordPress Related Job Market Job Options Non-Technical WordPress Website Work Content – articles, documentation Editing Strategy Auditing SEO – implementing, auditing, specialization Services Marketing Social media management community engagement Help Others Administration Business Management Project Management Support Non-WordPress Businesses Looking to start something new in WordPress Finding A Job Continue Where You Started Examine Your Experiences Get Out There Have Conversations Getting Hired…
  • /

    Lucky 7: Don’t Do Anything Until You Hear This – Joe A Simpson Jr

    http://bit.ly/joesimpsonjr-wcgr Hosting I purchase too much hosting… Start with free and level up as you learn WordPress Compare what you need Considerations Site Traffic eCommerce Site Speed Environmentally conscious Staging Uptime Site Design Why doesn’t my site look like the demo? Setup the test data for the demo Make sure there is support I have a premium theme but I can’t move things around. Page Builder or Traditional Theme? Do you need flexibility or are you OK with the theme restrictions? Accessibility Accessibility makes me angry… Color Links without underline can affect people with color blindness Colors shouldn’t be the only way to convey a message Color contrast testing Start with an Accessible Theme Check with the Tab Key – Does it navigate the site…

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