~/talk

Creating a Module in Drupal 9 Using the REACT Library

TalkinPolishat DrupalCamp Poland 2022 · 2022-05-28..05-29· [drupal, react]
links:none on file
slides:none on file

Shows how to build a Drupal 9 custom module that uses React. Covers spinning up a Drupal 9 site with Lando, configuring Webpack to install React and other dependencies, using Drush to generate the module, creating a module configuration form with permissions, passing form data (including an external JSON URL) into React, fetching that JSON and the form data in the React app, rendering the results on a page, and adding SASS-based styles.

AI-written summary · about

  1. 0:00Introduction
  2. 1:04Local environment setup
  3. 3:11Installing Lando
  4. 6:02Drupal project start
  5. 8:32Drupal with Lando
  6. 15:49Basic module
  7. 19:20Custom block
  8. 24:02React setup
  9. 28:20Webpack and Babel
  10. 31:59React in Drupal block
  11. 33:25React components
  12. 36:44Demo and summary
  13. 37:28Q&A
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.