Drab: remote controlled frontend framework for Phoenix

Drab looks great. Is it possible to send client-side event data, like onclick? I’m thinking of replacing a React/Redux app which has a lot of UI interactions. I’m not sure if Drab is a good fit, but I hate the complexity React and Redux bring.

I wrote a widget that lets you tag photos. To place the tag, I need to get mouse click coordinates from the event. For example:

function getEventLocation(event) {
	const rect = event.target.getBoundingClientRect()
	const x = ((event.clientX - (rect.left + 10)) / rect.width ) * 100
	const y = ((event.clientY - (rect.top  + 10)) / rect.height) * 100
	return { x, y }	
}

I’m not sure if Drab is suited for this type of thing. While I love how Redux and React work, in practice, I find the added complexity unpleasant. I love writing my templates in EEx.