Join BoxWorks in San Francisco Nov 12-13! Keynotes, product demos, and Box Master Classes. Reserve your spot!

Content Preview UI Element doesn't display file content in ReactJS created with create-react-app

Answered
New post

Comments

1 comment

  • FranklinPOC

    Great support from Box crew. 

     

    SOLUTION:  The CSS is a must to define the size of the Preview container; or else it defaults to size 0 (zero) hence the body of file is not displaying.

     

    .container {
      height: "100%";
      width: "100%"
    }

     

     

    ".container" is whatever is containing the ContentPreview element.

    0
    Comment actions Permalink

Please sign in to leave a comment.