Loading tutorials
useState, and handle events such as onChange. Here we review how state is owned by a component. The rest of the tutori5 min readuseState, destructure props, and attach an onChange or onClick handler. It builds on the idea that props flow one way, from parent to child. Here you will see how a child can still cause a change in the parent's data without breaking 6 min readuseState, and handle onChange events. It also assumes you know the basics of JavaScript destructuring and arrow functions. You don't need any knowledge of lifting state yet. This chapter is about the problem that mak7 min readuseState, and handle onChange events. It builds on the previous chapter, where two sibling components each kept their own copy of the same text and drifted apart. Here you will learn the rule that fixes that problem, and ho6 min readuseState, destructuring and arrow functions, and how to handle events such5 min readuseState, and pass props and callbacks down. It also assumes you have seen the previous chapters' pattern of lifting state into a common parent. Here the question is what that parent should store. The answer is the smallest amount of stat6 min readuseState, and handle events such as onChange. It also assumes you have seen the sibling sync problem and the basic lift-state-up move. Here the question is narrower: given a piece of state, which component should hold it?5 min readuseState, pass props and callbacks, and have seen a lifted-state example such as the temperature converter. Here you will see what happens when lifted state has to travel through many layers of components, why that becomes a problem, and 5 min readuseState, children, and basic hooks. Lifting state is the default tool. This chapter covers what to reach for when it b7 min read