Welcome to the new Box Support website. Check out all the details here on what’s changed.

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.