-
Notifications
You must be signed in to change notification settings - Fork 46.8k
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
Getting new-docs ready for launch #8027
Conversation
Shouldn't Addons be part of the Reference rather than Advanced Guides? |
My initial thought is that the installation page throws a lot of concepts at you. A lot of stuff is mentioned before I even find out the names of the npm packages to install. It feels like you're trying to cover all bases by catering to every possible audience, but that makes it harder to pull out the information relevant to me. Are we installing a library or introducing an entire development paradigm? Perhaps a more appropriate starting point might be to divide and conquer the audience based on what they're trying to achieve (your page headings do this to a degree, but I don't think it's enough):
|
Can you clarify this please?
I think that’s exactly what we tried to do. If it doesn’t work, could you please submit a PR against |
The "React without es6" bit feels a bit weird to me. If starting fresh why show folks |
We can't just omit |
@gaearon what I'm getting at is that by reading just the installation page, here's a list of terms and technologies i'm potentially coming across for the first time:
|
Would you like to submit a PR to make it more friendly? This section was written in a bit of a haste and I agree it would benefit from a more introductory perspective. The constraint is that all those details still need to live somewhere. |
I'll need to think about the problem a bit more, I don't have the full context of what this rewrite is attempting to solve. Train of thought alert: My main thinking is that React's sweet spot (when viewed as a standalone library) is still as a tool for adding rich interactivity to existing applications in a maintainable manner. Absolute newcomers to React are going to have the best time if this is what they're trying to do, and it should be possible to explain how to get up and running with a relatively constrained amount of jargon. Obviously React now has a huge ecosystem and people are trying to use it for much more, and I think Create React App is a great introduction. But educating people on that is a much bigger can of worms, and one that I think should be handled as a page or section in its own right. |
Curious if you had a chance to look through other pages yet? Mostly we are trying to provide a step-by-step introduction to concepts, from simpler to more complex, instead of mashing them all together without a specific order, like in current docs. |
I had a brief look and the rest of it does feel like a more gentle introduction, it's mainly just the installation page that feels overwhelming. |
@lacker I'm working on PR against this that splits conditional & lists guides and adds some more content to them. |
@@ -1,6 +1,8 @@ | |||
--- | |||
id: react-without-es6 | |||
title: React Without ES6 | |||
redirect_from: "/docs/language-tooling.html" | |||
redirect_from: "/docs/environments.html" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't these two pages point to Installation instead?
They were about setting up build transforms, not about createClass().
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok
@@ -2,6 +2,13 @@ | |||
id: jsx-in-depth | |||
title: JSX In Depth | |||
permalink: docs/jsx-in-depth.html | |||
redirect_from: "/docs/jsx-spread.html" | |||
redirect_from: "/docs/jsx-gotchas.html" | |||
redirect_from: "/tips/if-else-in-JSX.html" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If/else should link to "Conditional Rendering" instead. I added it as a separate guide in lacker#2.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok
redirect_from: "/docs/component-specs.html" | ||
redirect_from: "/tips/componentWillReceiveProps-not-triggered-after-mounting.html" | ||
redirect_from: "/tips/dom-event-listeners.html" | ||
redirect_from: "/tips/initial-ajax.html" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is unfortunate. We don't have a good place for "Fetching Data", and we removed the only example we had about it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, it's just a redirect though. I think the world will survive having one "tip" with ~0 usage having a confusing redirect.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm worried this might be linked to from StackOverflow, e.g. "here's how to do AJAX in React". Can't prove it tho.
redirect_from: "/tips/componentWillReceiveProps-not-triggered-after-mounting.html" | ||
redirect_from: "/tips/dom-event-listeners.html" | ||
redirect_from: "/tips/initial-ajax.html" | ||
redirect_from: "/tips/use-react-with-other-libraries.html" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So is this. Maybe let's make it link to ref doc instead.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This tip only did one thing, gave an example of a component with all the lifecycle methods doing nothing. So I think this is the logical place to redirect it to, also the tip was not really too helpful for anything IMO.
* Split Lists and Conditional Rendering * Update lists-and-keys.md
OK I responded to every detailed item. I think the main open question is whether we should muck around with the "installation" flow or just leave it as is. |
I'd say ship now and we can fix it up later. |
Well I fixed it up :P @AndrewIngram I think it will be simpler here since the initial flow goes to "hello world" which just suggests codepen. Last call for feedback here. |
Thanks for the great work on these docs, they're really great. One thing I might adjust is the hello world codepen linked to at the very start (http://codepen.io/gaearon/pen/rrpgNB?editors=0010). If as I complete beginner I were to add a We could instead wrap the current
|
This is just cleaning up a bunch of little loose ends left over. I think this is the last stuff we need before merging new-docs to master.