yandex / reshadow

Markup and styles that feel right
https://reshadow.dev
Other
363 stars 15 forks source link

Commented variable inside style #48

Closed comerc closed 5 years ago

comerc commented 5 years ago

I have code with commented variable color:

  render() {
    const { b } = this.state
    // const color = b ? 'red' : 'green'
    return styled(styles)`
      container {
        /* background: ${color}; */
      }
    `(
      <container as="button" onClick={this.handleClick}>
        Dummy
      </container>,
    )
  }

And I have unexpected error:

./src/components/ReshadowPage/ReshadowPage.tsx
  Line 24:  'color' is not defined  no-undef
lttb commented 5 years ago

thank you for the issue!

fixed in #78

we'll close it in the next release