Skip to content

modularity #5935

@AlexGalays

Description

@AlexGalays

Is there any work going on to make React a bit more modular?
Before you laugh it off, I'm not suggesting React should be based on thousands of "micro-libs" :)

Some things I never used, or don't have a need for:

  • Server side rendering -> Only use React in non SEO critical projects; Also absolutely not convinced about so-called performance benefits as we don't use node to begin with.
  • Support for older browsers -> This is a fast moving target; More and more people drop support for IE < 10-11 completely nowadays, especially on rich "apps" where it would be a complete bother anyway. Do Synthetic events do more than just patch old browsers quirks?
  • propTypes; Runtime type checks impossible to remove in production... Nowadays we can use typescript or flow to have quicker compilation feedback without any size overhead.

Just some thoughts, this is not meant as a critic, just wondering about the design direction for React. I know, all this might only remove a few dozens of kbytes and in the grand scheme of things, it's not hugely important, but I like to think every little detail count.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions