reactjs


Why does React warn “Unknown prop `p` on <p> tag. Remove this prop from the element.” when there's no such prop?


I get warnings like this when upgrading from React 0.13.3 to 15.4.2:
Warning: Unknown prop `p` on <p> tag. Remove this prop from the element. For details, see https://fb.me/ react-unknown-prop
in p (created by Unknown)
(I had to split up the URL to get around a "no URL shorteners" thing on Stack Overflow; don't want to expand it because that would make the quoted error message inaccurate.)
But I don't see any use of such a property. What could be the issue?
After some divide-and-conquer debugging, I found the culprit:
<p dangerouslySetInnerHTML={{ __html: stuff }}></p>
Changing it to this fixes the issue:
<p dangerouslySetInnerHTML={{ __html: stuff }} />

Related Links

Using goBack function from react-router-redux
Can I create alias routes using react router?
Unable to update the state of my app, console.log inside reducer shows that object has changed, but the state remains same
Change background of parent after Match
React and Google's autocomplete Service and fetching zipcodes
Populating FieldArray based on a JSON file uploaded
componentDidMount not called
ReactJS component not rerendering when props are passed
React Redux … syntax error
How does one set the tabIndex attribute on a draft-js instance?
ComponentDidMount() not working
UIScrollView Canvas Equivalent?
ReactJS - props or propTypes?
React Router V4 structure
Should a view be ordering data?
Unable to load React class component inside other class component

Categories

HOME
gulp
postgresql
stanford-nlp
alasql
typo3
azure-eventhub
highmaps
django-middleware
singleton
ms-application-insights
autocad
handlebars.js
pip
doctrine2
jcodemodel
console-application
taxonomy
versioning
bootstrap-datetimepicker
descriptor
aws-iot
windowserror
core-animation
setup-project
dynamic-memory-allocation
jboss-arquillian
vtd-xml
foxpro
textview
lines
visual-studio-debugging
odp.net
mkdir
leaderboard
nscollectionview
idea-plugin
icu
irr
firefox-developer-edition
smooth-streaming
grails-2.0
spring-webflow-2
automapper-4
remap
pyopenssl
google-cloud-shell
audio-fingerprinting
richtext
rmq
computed-properties
scikit-image
eclipse-mars
git-push
konakart
scriptengine
hfp
bytearray
gdi
user-profile
pebble-js
code-translation
trendline
tvp
libgcrypt
cloud-storage
syncano
textblob
teamstudio-unplugged
cordova-3
time-frequency
carrier
mdp
ekevent
lastinsertid
grunt-wiredep
jfilechooser
ardor3d
aspnet-compiler
usersettings
cloudmade
qt5.1
ncml
big-endian
certificate-revocation
systrace
dancer
erlide
mvcmailer
commonsware
jqzoom
umfpack
log-shipping
vectorwise
xhtmlrenderer
cryptolicensing
azure-appfabric
silverlight-2.0
djangoappengine
j++
stackless

Resources

Encrypt Message