Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

p cannot appear as a descendant of p react

The warning tells you what exactly you need to do. You cannot nest <p> tags and hence use div for the outer tag like

<div>
   {this.state.error && 
      <p className="errorText">
           {this.state.error}
       </p>
   }
</div> 
Comment

p cannot appear as a descendant of p react

<div>
   {this.state.error && 
      <p className="errorText">
           {this.state.error}
       </p>
   }
</div>
Comment

PREVIOUS NEXT
Code Example
Javascript :: jenkins javascript heap out of memory 
Javascript :: js spin wheel color 
Javascript :: javascript Implicit Conversion to Number 
Javascript :: javascript continue with Nested Loop 
Javascript :: truthy or falsy 
Javascript :: JavaScript Add Methods to a Constructor Function Using Prototype 
Javascript :: javascript Add Symbol as an Object Key 
Javascript :: javascript Passing undefined Value 
Javascript :: javascript remaining elements of an array to a variable using the spread syntax 
Javascript :: freecodecamp javascript basic step quoting string 
Javascript :: django debug toolbar javascript error 
Javascript :: Save multiple Child 
Javascript :: get max type value in solidity 
Javascript :: ex: javascript Executor 
Javascript :: get data notifacation realtime use ajax good 
Javascript :: how to send the captured image from js to python backedn flask 
Javascript :: Json to npy file 
Javascript :: phaser wrap in rectangle 
Javascript :: phaser stagger play 2 
Javascript :: toast waning 
Javascript :: Expresiones regulares para diferentes tipos de campos de formularios 
Javascript :: TypeError: (0 , import_dev.useParams) is not a function remix 
Javascript :: golang read json file 
Javascript :: js function expression 
Javascript :: json validate 
Javascript :: react native toggle button with text 
Javascript :: how to add dropdown with filter in angular material 
Javascript :: JavaScript HTML DOM Events 
Javascript :: setting up react on visual studio code 
Javascript :: javascript move element position 
ADD CONTENT
Topic
Content
Source link
Name
7+2 =