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

Readme could be clearer - DOM or App itself? #10

Open
thegsi opened this issue Nov 6, 2015 · 0 comments
Open

Readme could be clearer - DOM or App itself? #10

thegsi opened this issue Nov 6, 2015 · 0 comments

Comments

@thegsi
Copy link

thegsi commented Nov 6, 2015

Either make clear you are dealing with the dom or change code to be added to react project itself. It took me ten minutes to see the magic.

eg var rootElement = document.body.getElementById("wrapper");
ReactDOM.render(
,
rootElement
);

or var rootElement = document.getElementById("wrapper");

React.render(
,
);

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

1 participant