diff --git a/src/index.js b/src/index.js index c5d5638..3e8c2de 100644 --- a/src/index.js +++ b/src/index.js @@ -113,8 +113,14 @@ class SpatialNavigation extends Component { } render() { + let classNames = []; + + if (this.props.className) { + classNames.push(this.props.className); + } + return ( -
{this.props.children}
+
{this.props.children}
); } } @@ -254,8 +260,14 @@ class FocusableSection extends Component { } render() { + let classNames = []; + + if (this.props.className) { + classNames.push(this.props.className); + } + return ( -
+
{this.props.children}
);