From the sweet.js mailing list. It seems like there's a problem with macros inside elements?
macro id {
rule { $x } => { $x }
}
<h2>{id person.name}</h2>
// throws a parse error
Running sjs -p -l jsx-reader test.js gives:
_DOM {
( ( React . DOM ) . h2 ) null person . name ,
}
So it looks like the _DOM macro isn't being expanded for some reason.