sst.dev icon indicating copy to clipboard operation
sst.dev copied to clipboard

Proposal: Use React Hooks?

Open trivikr opened this issue 5 years ago • 3 comments

Hi,

First of all, a big thank you to authors and maintainers for creating this tutorial.

React introduced Hooks in v16.8 in Feb 2019, which allows usage of state and other React features without a class. Most developers seem to be happy with using Hooks (rfc, implementation)

Are there any plans to switch this tutorial from using classes to Hooks?

Regards, Trivikram

trivikr avatar Jul 29 '19 06:07 trivikr

Yup our next major revision will be using Hooks.

jayair avatar Aug 03 '19 23:08 jayair

We've built aws-samples/aws-sdk-js-v3-workshop as a modified version of demo code from serverless-stack, and are using React Hooks

trivikr avatar Sep 18 '19 20:09 trivikr

This is immensely cool, thanks! Hooks make the code so much simpler and opens the way to a whole other level of good design practices.

boxabirds avatar Dec 18 '19 14:12 boxabirds