sst.dev
sst.dev copied to clipboard
Proposal: Use React Hooks?
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
Yup our next major revision will be using Hooks.
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
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.