I am using the curly brackets to include a javascript expression but whenever I include the curly brackets it gives out an error: JSX expressions must have one parent element. I think it has to do with my VSCODE. I have gone through similar problems with the same error but I can't find a solution. Is there a way around it...
render () {
return (
<div className="App">
<Particles className='particles'params={ particlesOptions }/>
<Navigation />
{ this.state.route === 'route'
? <Signin />
: <Logo />
<Rank />
<ImageLinkForm
onInputChange={ this.onInputChange }
onButtonSubmit={ this.onButtonSubmit }
/>
<FaceRecognition box={ this.state.box } imageUrl={ this.state.imageUrl }/>
}
</div>
);
}