rename hook methods RRS feed

  • Question

  • User1034446946 posted


    I have a hook which i need to call multiple times, but i am stuck on the syntax to rename them

    const {value1, value2, value2} = useHook(value)

    const {value1 as a, value2 as b, value2 as c} = useHook(value)

    the above doesn't work any suggestions?

    Saturday, October 26, 2019 8:32 PM


  • User1034446946 posted

    sorted, {value1 : someNewValue}

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Sunday, October 27, 2019 12:16 PM