import{TextLoop}from"react-text-loop-next";constApp=()=>{return(<TextLoop>First itemSecond itemThird item</TextLoop>{" "} and something else.);}; Props Caveats Because<TextLoop>loops through its children nodes, only root-level nodes will be considered so doing something like: <TextLoop>...
react-text-loop 文字滚动 npm install react-text-loop or yarn add react-text-loop import React, { Component } from 'react'; import TextLoop from "react-text-loop"; class App extends Component { state = { } render() { return ( <TextLoop springConfig={{stiffness:340,damping:30}} ma...
import TextLoop from "react-text-loop"; import Link from "react-router"; import { BodyText } from "./ui"; class App extends Component { render() { return ( <TextLoop> First item <Link to="/">Second item</Link> <BodyText>Third item</BodyText> </TextLoop>{" "} and something ...