How to setAttributes in Gutenberg block?

How to setAttributes in Gutenberg block?

tech