小编joe*_*ges的帖子

单击外部 url 的图像 react.js

我正在研究一个投资组合,我正在使用 react.js。我只想单击一个图像,例如 StackOverflow 图标,并能够重定向到该页面。我看到了各种不同的方法,但我无法让它重定向。

点击查看图标图片

我正在使用 React-Bootstrap,我不知道这是否会改变任何东西。

export default class Home extends Component {
render() {
    return (
        <Grid>
            <Jumbotron className="brainImg">
            </Jumbotron>
            <div class="footer"><center className="iconsBaby">
                <Image src="giticon.png" className="githubIcon" to="https://github.com/Joeyryanbridges" />
                <Image src="linkedinIcon.png" className="linkedinIcon" href="https://github.com/Joeyryanbridges" />
                <Image src="SOFIcon.png" className="githubIcon" href="https://github.com/Joeyryanbridges" />
            </center>
            </div>
        </Grid>
    )
}
Run Code Online (Sandbox Code Playgroud)

感谢您的关注。

reactive-programming reactjs react-router react-redux

9
推荐指数
1
解决办法
3万
查看次数

自Lottie 3.0更新以来setAnimation已更改?

适用于Lottie IOS的​​AirBNB的README.md已更新。setAnimation不在自述文件中,也没有在更新版本3.0.0的选择器的快速下拉列表中注册。有人遇到此问题吗?Lottie cocoapod已成功安装。

README.md试用和错误重新启动

@IBOutlet private var animationView: AnimationView!

override func viewDidLoad() {
    super.viewDidLoad()

    startAnimation()

}

func startAnimation() {

    animationView.setAnimation(named: "spineffectloader")
    animationView.play()

}
Run Code Online (Sandbox Code Playgroud)

ios swift lottie

5
推荐指数
1
解决办法
534
查看次数