This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Write this in any render function of a React component: <div style={{display: 'none'}}>Hello World!</div> Netbeans will warn you of the unexpected '{' char after the style property. # Doc JSX inline styles https://facebook.github.io/react/tips/inline-styles.html # Used Netbeans Product Version: NetBeans IDE Dev (Build 201608240002) Java: 1.8.0_92; Java HotSpot(TM) 64-Bit Server VM 25.92-b14 Runtime: Java(TM) SE Runtime Environment 1.8.0_92-b14 System: Linux version 4.4.0-34-generic running on amd64; UTF-8; fr_FR (nb)
It seems that it comes from the parser. Peto, can you look at this? Thanks.
(In reply to Petr Pisl from comment #1) > It seems that it comes from the parser. Peto, can you look at this? Thanks. No, it's not. JS parser result is ok. The error is coming out from CSS parser.
Same problem here. It would be nice if this could be fixed, because ReacJS becomes more popular these days ;-)
Fixed in dev build. http://hg.netbeans.org/jet-main/rev/cca2fa64fb7d
Great news. Thanks for your work!
Integrated into 'main-silver', will be available in build *201701210001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/cca2fa64fb7d User: Milutin Kristofic <mkristofic@netbeans.org> Log: #267744 - Hint error on JSX inline style