5 ms·
Unless you learnt react from non-official sources, you can't avoid learning components because they teach them first.
by Scarbutt 7y ago
Unless you learnt react from non-official sources, you can't avoid learning components because they teach them first.
- pacala 7y agoYou'd be surprised. The only deeper dive into Components is https://reactjs.org/docs/state-and-lifecycle.html https://reactjs.org/docs/state-and-lifecycle.html of the "Main Concepts" section, which I skipped in favor of https://reactjs.org/docs/hooks-state.html https://reactjs.org/docs/hooks-state.html of the "Hooks" section. Haven't got to "Advanced" yet, hope to stay clear of that.
- acemarke 7y agoThe React team is working on rewriting the docs to focus on function components and hooks first, as of this quarter: https://www.reddit.com/r/reactjs/comments/g2pda4/functional_components_vs_class_components/fnmtl5r/?context=3 https://www.reddit.com/r/reactjs/comments/g2pda4/functional_...