We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Editing of objects ...
make a constructor in fruit to add state editable
fruit
editable
make a button in fruit that checks state of editable & outputs edit if able
in fruit's render function, write let function to setup the values of the state for the edit button
add name & description fields to the fruit render function's return function
fruit constructor needs a function bound to itself to bind to object
the function above needs a function definition (handleEdit) made in fruit but outside the constructor
handleEdit
the handleEdit needs to be bound in the render's return method for onClick
render
return
onClick
Body class needs to have a method (handleUpdate) to form fetch request & return the result
Body
handleUpdate
Body class needs function (handleUpdate) to update state of fruit avoiding an extra rendering
Body class needs to bind that function handleUpdate to the AllItems in Body class's render function's return function
AllItems
AllFruits class needs to have function handleUpdate bound
AllFruits
Fruit needs to have the constructor bind handleEdit to the class and component it's interacting
Fruit
Fruit needs to define the function handleEdit to do let styles of variables
let
The text was updated successfully, but these errors were encountered:
Sorry, something went wrong.
No branches or pull requests
Editing of objects ...
make a constructor in
fruit
to add stateeditable
make a button in
fruit
that checks state ofeditable
& outputs edit if ablein
fruit
's render function, write let function to setup the values of the state for the edit buttonadd name & description fields to the
fruit
render function's return functionfruit
constructor needs a function bound to itself to bind to objectthe function above needs a function definition (
handleEdit
) made infruit
but outside the constructorthe
handleEdit
needs to be bound in therender
'sreturn
method foronClick
Body
class needs to have a method (handleUpdate
) to form fetch request & return the resultBody
class needs function (handleUpdate
) to update state of fruit avoiding an extra renderingBody
class needs to bind that functionhandleUpdate
to theAllItems
inBody
class'srender
function'sreturn
functionAllFruits
class needs to have functionhandleUpdate
boundFruit
needs to have the constructor bindhandleEdit
to the class and component it's interactingFruit
needs to define the functionhandleEdit
to dolet
styles of variablesThe text was updated successfully, but these errors were encountered: