
Inline adoc files when they are included exactly once. Also fix language tags because this inlining gives us better information on what language the code is written in.
24 lines
638 B
Plaintext
24 lines
638 B
Plaintext
== Why is this an issue?
|
|
|
|
When a given "props" is used more than once in a component, there is great chance it's a mistake and so the behavior of the application won't be the one expected.
|
|
|
|
|
|
=== Compliant solution
|
|
|
|
[source,javascript]
|
|
----
|
|
<Hello firstname="John"
|
|
lastname="Doe" />
|
|
----
|
|
|
|
|
|
ifdef::env-github,rspecator-view[]
|
|
'''
|
|
== Comments And Links
|
|
(visible only on this page)
|
|
|
|
=== on 23 Feb 2018, 11:58:43 Alexandre Gigleux wrote:
|
|
Covered by ESLint for React: \https://github.com/yannickcr/eslint-plugin-react/blob/HEAD/docs/rules/jsx-no-duplicate-props.md (react/jsx-no-duplicate-props)
|
|
|
|
endif::env-github,rspecator-view[]
|