view.js / viewScript (Frontend JS)
Block type frontend scripts definition. They will be enqueued only when viewing the content on the front of the site.
@todo embed https://github.com/bu-ist/labs-theme-blocks/blob/sandbox/src/blocks/theme/view.js
If your block does not need JS, view.js
can be deleted and viewScript
removed from block.json
.
@todo embed https://github.com/bu-ist/labs-theme-blocks/blob/sandbox/src/blocks/theme/block.json line 14
[alert icon] All coding must follow BU and WordPress JavaScript Coding Standards.