virtual-dom hook for setting text selection
$ npm install --save select-hook
var h = require('virtual-dom/h')
var SelectHook = require('select-hook')
function render (state) {
return h('input', {
select: SelectHook({
start: 0,
end: 10
})
})
}
Type: object
Default: {start: 0, end: 0}
An object containing the start and end points of the desired selection.
MIT © Ben Drucker