Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docs: Update JavaScript build and setup with wp-scripts updates #14440

Merged
merged 8 commits into from
Mar 18, 2019
Prev Previous commit
Next Next commit
Use arrow functions for effect
  • Loading branch information
oandregal committed Mar 15, 2019
commit 6b95f870d3485162c3902d50a65471c0347b8eec
Original file line number Diff line number Diff line change
Expand Up @@ -104,12 +104,8 @@ registerBlockType( 'myguten/test-block', {
title: 'Basic Example',
icon: 'smiley',
category: 'layout',
edit() {
return <div>Hola, mundo!</div>;
},
save() {
return <div>Hola, mundo!</div>;
},
edit: () => <div>Hola, mundo!</div>,
save: () => <div>Hola, mundo!</div>,
} );
```

Expand Down