Skip to content

Comments

Changed React import style#28

Open
justme8910 wants to merge 1 commit intocrello:masterfrom
justme8910:master
Open

Changed React import style#28
justme8910 wants to merge 1 commit intocrello:masterfrom
justme8910:master

Conversation

@justme8910
Copy link

This small PR just changes the way that react is imported as it was causing issues when using in other projects.
The following errors were shown:
JSX element class does not support attributes because it does not have a 'props' property.ts(2607)
'Lottie' cannot be used as a JSX component. Its instance type 'Lottie' is not a valid JSX element. Type 'Lottie' is missing the following properties from type 'ElementClass': context, setState, forceUpdate, props, and 2 more.ts(2786)

This PR fixes these issues.

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.

2 participants