BrianHCombes opened a new issue, #4832:
URL: https://github.com/apache/netbeans/issues/4832

   ### Apache NetBeans version
   
   Apache NetBeans 15
   
   ### What happened
   
   Within the ReactJS development environment where HTML/JSX is normal in a JS 
file, NetBeans is interpreting fragment syntax as unexpected while expecting a 
"jsx_indentifier" per the warning message. See screenshot.
   
   
   ![JSX_Indentifier-problem- 2022-10-20 
231431](https://user-images.githubusercontent.com/21314458/197117714-3a1d00cd-b90f-4070-9a16-b6cce2c410ff.jpg)
   
   
   ### How to reproduce
   
   The trouble starts at the '<>' and ends at the '</>'
   Simply paste this code into your IDE, running the code not needed:
   
   
   import React from '../react_nodes/react';
   import { Outlet, Link } from '../react_nodes/react-router-dom';
   
   const Layout = () => {
     return (
            
       <> 
             <div>
             <Link to="/"><button>Home</button></Link>
             <br /><br />
             </div>
               
             <div>
             <Link to="/blogs"><button>Blogs</button></Link>
             <br /><br />
             </div>  
               
             <div>
             <Link to="/contact"><button>Contact for thee</button></Link>
             </div>            
           
   
         <Outlet />
       </>
     )
     
   };
   
   export default Layout;
   
   ### Did this work correctly in an earlier version?
   
   No / Don't know
   
   ### Operating System
   
   Windows 11 Pro
   
   ### JDK
   
   Java: 18.0.1.1; Java HotSpot(TM) 64-Bit Server VM 18.0.1.1+2-6
   
   ### Apache NetBeans packaging
   
   Apache NetBeans provided installer
   
   ### Anything else
   
   Happens at all times this syntax is encountered.
   
   ### Are you willing to submit a pull request?
   
   No
   
   ### Code of Conduct
   
   Yes


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to