-
-
Notifications
You must be signed in to change notification settings - Fork 15.2k
#3595, Barebones Tutorial #3642
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
Conversation
Deploy preview for redux-docs ready! Built with commit 743735f |
Thanks for putting this together! Given the holiday week and some upcoming business travel, I may not have time to look through it right away, but I'll make sure I get to it in the near future. |
@markerikson, can I nudge you on this? (I'll quite happily reuse this elsewhere with no offence taken if you don't want it for the official docs) |
I really appreciate the PR and the effort you've put into this, but I'd like to hold off on it for now. Given how critical the tutorial section is, I think we need to put some serious thought and planning into the exact structure, sequence, and content of the tutorials as a whole, so that it all combines into a coherent whole. It's worth keeping this PR around as a reference for when we do that planning, though. |
Closing since we have the new essentials guide. |
Barebones tutorial (part of #3595 )
PR Type
Checklist
For new content
What kind of content category is this page (tutorial, how-to, explanation, reference)?
Tutorial
Who is the intended target audience?
Newcomers to Redux (who might also be relatively new to Javascript)
What knowledge are we assuming they have?
Basic Javascript
What are the intended results or takeaways from reading this page?
They should know:
store.getState()
andstore.dispatch
What is the most critical info they should learn?
type
property(state, action) => newState
and should cause no mutations or side-effectspayload
to provide additional information beyondtype
to a reducercreateStore
takes a reducer function as an argument and returns a store which uses that reducerstore.getState()
retrieves the current state held by the storestore.dispatch(action)
updates the store's state by passing its current state andaction
to the store's reducerOther notes
This page is quite long. I think that, if used, it would be more suited to having 'Barebones Tutorial' as a subcategory under 'Tutorials', with a single page then dedicated each to Actions, Reducers, Payloads, Action creators, and the Store, but wanted to check what thoughts were on that before I made that change.
It also might not be the style of thing that you want on the docs - I think the material is probably more naturally suited to a video-ish thing. No offence taken if that's the decision, as I can reuse this elsewhere.