Skip to content

liamst19/react-fetch-text

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React Fetch Text Demo

Demo Page

This is a demo for fetching text from a separate file, after the page has loaded, in React. The page fetches a long Japanese text, which is split by newline and rendered into separate paragraph elements.

There seems to be a problem when the paragraphs with vertical text-orientation are rendered into multiple column layout, where the height of the box containing the paragraphs becomes that of the very first column (row in the case of vertical text).

I've tried implementing a rather hack-y solution of adding an window.onresize event handler which sets the height of the container div to scrollHeight, which is the height of the element including any overflowing children. (source)

About

Demo for fetching and rendering text from another file in React

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published