Default State Reducer

๐Ÿ‘จโ€๐Ÿ’ผ It's a pretty simple, yet powerful solution. Inversion of control with good defaults allows our component users to have a lot more power and will reduce the amount of feature requests you get for these components by a lot, I promise.
๐Ÿฆ‰ An important thing to note is that once you do this your internal state becomes a part of your public API. So if you change the name of an internal state variable, then that will be a breaking change for your users. So be careful with this.
๐Ÿ•ท With great power comes great responsibility.
Login to get access to the exclusive discord channel.
  • General
    Welcome to EpicReact.dev! Say Hello ๐Ÿ‘‹
    Kent C. Dodds โ—† ๐Ÿš€๐Ÿ†๐ŸŒŒ:
    Welcome to the first of many posts in the EpicReact.dev channel! Take a moment to introduce yourself...
    0 ยท 4 days ago