jridgewell / babel-plugin-transform-incremental-dom

Turn JSX into IncrementalDOM
MIT License
145 stars 12 forks source link

How do I set a value of an attribute #68

Closed XanderEmu closed 8 years ago

XanderEmu commented 8 years ago

Hello,

I've got something like that:

const foo = 'bar';
<input value="{foo}" />

How do I force foo to be parsed as a variable and not as a string?

XanderEmu commented 8 years ago

Never mind. Turns out I just have to skip quotes:

const foo = 'bar';
<input value={foo} />