Jump to content
Search Community

Error with SplitText MagicScroll example with react

Nuzzler test
Moderator Tag

Recommended Posts

Hi !

 

I'm testing MagicScroll and i'm having an issue with an example( this link : https://github.com/bitworking/react-scrollmagic/blob/master/example/src/components/ScrollMagicExamples/SplitText.js)

 

I get following error : "Error: SplitChars only accepts a string as child."

 

The eroor occurs here :

   <SplitLetters>
            <span className='text'>AIIIGHT</span>
          </SplitLetters>

 

Why ? And what I must do to get only string because making a const x = "hello world"  and passing the string<SplitLetter> {x} </SplitLetters> isn't working :/

 

Thanks in advance for resolving my issue

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...