首页 > 解决方案 > 我有字符串参考和失败的道具警告与原型和参考反应

问题描述

我有这些问题,我不知道该怎么办。自从我收到这些错误以来,我不知道该走哪条路,我认为这是因为 xFactor 和 yFactor

完整页面:

const Fullpagescroll = () => {
        <>
            <ReactFullpage
                scrollingSpeed={1150}
                recordHistory={true}
                anchors={['Home', 'About', 'Project', 'Contact']}
                navigation
                render={() => {
                    return (
                        <>
                            <div className='section' data-anchors='section1'>
                                <ItemHome
                                />
                            </div>
                        </>

Backgroundall: 

        const style = {
            bgLayerStyle: {
                position: 'absolute',
                right: 0,
                height: '100%',
            }
        }
        return (
            <ParallaxMousemove>
                <ul className='content-img'>
                    <li >
                        <ParallaxMousemove.Layer layerStyle={style.bgLayerStyle} config={{
                            xFactor: 0.06,
                            yFactor: 0.02,
                            springSettings: {
                                stiffness: 50,
                                damping: 10
                            }
                        }}>
                            <img src={LeftSide} alt='Background' />
                        </ParallaxMousemove.Layer>

                   

在此处输入图像描述

标签: javascriptreactjs

解决方案


推荐阅读