Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stateless pure functional components #1

Merged
merged 6 commits into from
Oct 16, 2015

Conversation

developit
Copy link
Member

A component that does not require internal state can be very effectively represented as a pure function that returns JSX (VDOM) as a function of it's input, props.

const FileInput props => <input type="file" {...props} />;

render(<FileInput />, document.body);

developit added a commit that referenced this pull request Oct 16, 2015
…ents

Stateless pure functional components
@developit developit merged commit 0ce9f9e into master Oct 16, 2015
@developit developit deleted the stateless-pure-functional-components branch October 16, 2015 02:19
brodycj pushed a commit to brodycj/preact that referenced this pull request Jul 15, 2018
Experimental tsc --checkJs & cleanup fixes (for discussion)
andrewiggins pushed a commit that referenced this pull request Oct 17, 2019
Re update
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant