Slidebars icon indicating copy to clipboard operation
Slidebars copied to clipboard

Slidebars in ReactJS

Open michaelkoelewijn opened this issue 9 years ago • 1 comments

ReactJS strips off the canvas and off-canvas attributes by default so the plugin does not work. The plugin doesn't seem to support the targetting of ID's/classnames (or i am just misreading stuff)

Course of action?

michaelkoelewijn avatar Nov 01 '16 11:11 michaelkoelewijn

Just found out that adding the keyword "is" to the element will render the attribute just fine. In my opinion its still better to at least prefix the "canvas" and "off-canvas" attributes with "data-"

Example code of working React code, in case someone else needs it: <div is off-canvas="id-1 left reveal"> and <main is canvas="container">

michaelkoelewijn avatar Nov 01 '16 11:11 michaelkoelewijn