Continuing where they left off (part 1 is here: • Digging into ACF Blocks for the Block... ) , Aurooba and Brian recap their experience with ACF Blocks. Next, they look at two different ways to create native WordPress blocks: using nested inner blocks and using React components. They discuss the pros and cons of all three methods, how to plan your blocks, and when to just use block patterns.
A full transcript of the episode is available on the website. Watch the video podcast on YouTube and subscribe to our channel and newsletter to hear about episodes (and more) first!
The code from the episode - https://github.com/viewSourcePodcast/...
Brian + ACF Team – / 1620442914110447619
Brian’s ACF Blog Post - https://www.briancoords.com/documenta...
Brian's website – https://www.briancoords.com
Aurooba's website – https://aurooba.com
00:00:00 Introduction and ACF's documentation
00:03:02 Reviewing Aurooba's ACF block
00:05:55 Estimated timeframe for different types of blocks
00:06:58 A native block with innerBlocks
00:09:57 The native block with React components
00:13:08 Inner blocks versus block patterns
00:17:08 The code behind the "wrapper" block
00:19:47 Deciding which type of block to build
00:21:37 Building a block with React components
00:24:52 Matching the block editor's UI
00:28:21 Wrap up - how to decide?