Skip to content
This repository has been archived by the owner on Sep 10, 2022. It is now read-only.

Change string component creation using React.createElement in toClass function #306

Merged

Conversation

mattiaocchiuto
Copy link
Contributor

Using the toClass function to create a component using a string it create a component with the baseComponent variable not resolved, so if I try to create a component calling: toClass('textarea') I will receive as output a <baseComponent> element and not a <textarea> element.

@istarkov
Copy link
Contributor

Thank you, good catch, please fix linting errors

@mattiaocchiuto
Copy link
Contributor Author

Done

@istarkov istarkov merged commit dcc6f05 into acdlite:master Jan 28, 2017
@mattiaocchiuto mattiaocchiuto deleted the fix-toclass-string-component branch January 28, 2017 19:06
brodybits added a commit to brodysoft/recompose that referenced this pull request Feb 3, 2021
to avoid using the deprecated React.createFactory function

(and update .size-snapshot.json)

resolves acdlite#306
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants