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...
A simple react text loop component🤷. Latest version: 1.0.5, last published: 7 months ago. Start using react-text-loop-ts in your project by running `npm i react-text-loop-ts`. There are no other projects in the npm registry using react-text-loop-ts.
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 ...