Skip to content

Making React a Functional program by mapping behaviour to expected inputs and outputs. #25351

@kinjal-basu

Description

@kinjal-basu

To my fellow React developers,

I have been learning about Functional Programming recently. According to my knowledge so far, a purely functional program is one where every action / behavior is a map from an input type (parameters) to an output type (return) without mutating any state or accessing global objects or methods.

Since React promotes a functional approach to front-end development, I was curious about how much of React was functional itself. I know its impossible (read, idealistic) to create a purely functional program where user input is so prevalent but if we are able to at least list every possible behavior of React then it would be much simpler for developers using React to reason about their programs.

I find this endeavor to be worth my time but I am completely over my head regarding how to start listing every expected behavior of React. It would be very helpful if someone could point me in the right direction or tell me why this may be a doomed endeavor and save me a lot of time (although I would not be looking forward to this conclusion).

Thanking You
@kinjal-basu

Metadata

Metadata

Assignees

No one assigned

    Labels

    Resolution: StaleAutomatically closed due to inactivity

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions