Skip to content

basic example? #128

@dcsan

Description

@dcsan

using create-react-app, added a simple example as per the README

I just see a blank screen.
Is CSS or something else required to get up and running?

import React from "react";
import Carousel from 're-carousel'

class KwGame extends React.Component {
  render() {
    return (
      <Carousel auto>
        <div style={{backgroundColor: 'tomato', height: '100%'}}>Frame 1</div>
        <div style={{backgroundColor: 'orange', height: '100%'}}>Frame 2</div>
        <div style={{backgroundColor: 'orchid', height: '100%'}}>Frame 3</div>
      </Carousel>
    );
  }
}

export default KwGame

DOM stuff appears to be there, just doesn't show up.

image

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