javascript - 我有字符串参考和失败的道具警告与原型和参考反应
问题描述
我有这些问题,我不知道该怎么办。自从我收到这些错误以来,我不知道该走哪条路,我认为这是因为 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>
解决方案
推荐阅读
- ruby-on-rails - 用户立即通过设计注销,仅在生产中
- java - 无法将 Java/Tomcat 应用程序连接到 Docker/MySQL
- javascript - 建议/见解:如何安全地将 Angular 4 应用程序更新到 Angular 6
- python - pycharm http客户端向Django runserver发送请求“对等连接重置”
- vue.js - Q-Tree如何为所有节点添加复选框
- strapi - 如何设置我的表带以与我的 HTTPS 前端通信?
- c# - C# 将变量设置为 if 语句的结果
- c++ - 线性链表中的 C++ 递归
- javascript - 在 React/Redux 中存储用户偏好的最佳方式
- r - 在R中的标签内替换文本中的逗号