Skip to content
This repository was archived by the owner on May 20, 2022. It is now read-only.
This repository was archived by the owner on May 20, 2022. It is now read-only.

Unknown props #7

@arronhunt

Description

@arronhunt
import React, { Component } from 'react';
import Parallax from 'react-simple-parallax';

export default class Hero extends Component {
    render() {
        var background = {
            height: "1000px",
            backgroundImage: 'url(' + backgroundImage + ')',
        }
    return (
        <section className="hero">
            <Parallax speedDivider="3" backgroundStyle={background}>
                <!-- content -->
            </Parallax>
        </section>
    )
  }
}

Current implementation, but it throws an error:

Warning: Unknown props 'speedDivider', 'backgroundStyle' on <div> tag. Remove these props from the element. For details, see https://fb.me/react-unknown-prop

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions