Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

书写格式错误 #11413

Closed
liushuai512 opened this issue Oct 31, 2017 · 5 comments
Closed

书写格式错误 #11413

liushuai512 opened this issue Oct 31, 2017 · 5 comments

Comments

@liushuai512
Copy link

`
JSX Prevents Injection Attacks

By default, React DOM escapes any values embedded in JSX before rendering them. Thus it ensures that you can never inject anything that's not explicitly written in your application. Everything is converted to a string before being rendered. This helps prevent XSS (cross-site -scripting) attacks.`

错误:加粗的名字出现错误,应该改为

ReactDom 中间不能有空格,书写格式的错误

@M-ZubairAhmed
Copy link

so what is your question here ?

@liushuai512
Copy link
Author

err:By default, # React DOM escapes any values embedded in JSX before rendering them. Thus it ensures that you can never inject anything that’s not explicitly written in your application. Everything is converted to a string before being rendered. This helps prevent XSS (cross-site-scripting) attacks.
(错误:"中间多一个空格")

revamp:By default, # ReactDOM escapes any values embedded in JSX before rendering them. Thus it ensures that you can never inject anything that’s not explicitly written in your application. Everything is converted to a string before being rendered. This helps prevent XSS (cross-site-scripting) attacks.
(修改:去掉ReactDOM中间的空格)

@elevenpassin
Copy link

Well :O?

@yongzhi-chen
Copy link

yongzhi-chen commented Nov 2, 2017

What @liushuai512 was saying is that in the quoted message (probably it is coming from docs), there should not be a space between React and DOM. So React DOM should be changed to ReactDOM

@gaearon
Copy link
Collaborator

gaearon commented Nov 2, 2017

This doesn't really matter. We use "ReactDOM" when we talk about the entry point in code, but "React DOM" is the colloquial name for the renderer (just like "React Native").

Also please file issues about documentation in https://github.com/reactjs/reactjs.org.

Thanks!

@gaearon gaearon closed this as completed Nov 2, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants