Trying to implement the sidebar.js for wordpress

Not quite working out. has anyone here done this? tips, advice?
Thx
D

What’s not working about it? Can you explain better?

Best way is to create a widget put the content inside it, then use the sidebar.js on the display.

Cheers!