wix-incubator / react-templates

Light weight templates for react
https://wix.github.io/react-templates
MIT License
2.82k stars 207 forks source link

Compile error using jqwidgets. #206

Closed ghost closed 7 years ago

ghost commented 7 years ago

The following template generates an error.
How to solve this?

<div>
      <JqxInput
        width={200} height={25} source={countries}
        minLength={1} placeHolder={'Enter a Country'}
      />
</div>
nippur72 commented 7 years ago

If I am not wrong, you should have quotes with HTML attributes:

<div>
      <JqxInput
        width="{200}" height="{25}" source="{countries}"
        minLength="{1}" placeHolder="{'Enter a Country'}"
      />
</div>
ghost commented 7 years ago

You're right nippur72 !!! I was testing with examples (copy and paste) and forget the standard. Thank you.