This post has been de-listed
It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.
2
Hello. I am new to react. I would like some help with my layout. It's pretty tough on the eyes. Code inside.
Post Flair (click to view more posts with a particular flair)
Post Body
I am patching together an app. But the layout looks horrendous. I am no coder or developer by any stretch of the imagination. I'm just looking for some help to help my site not look so bad. This is how the site looks now.
This is the app.js code:
<div style={{ width: "80%", margin: "0 auto" }}>
<table>
<thead>
<tr>
<th>Tx Hash</th>
<th>Tx Height</th>
<th>Latest Posts/Comments</th>
<th>New Order Request</th>
</tr>
</thead>
<tbody>
{transactions.slice(0, 10).map((tx, index) => (
<tr key={index}>
<td>{tx.txHash.slice(0, 15)}</td>
<td>{tx.txHeight}</td>
<td>{tx.bicoText.slice(0, 300)}</td>
<td>{tx.newOrderRequest}</td>
<td>{tx.subNewOrderRequest}</td>
</tr>
))}
</tbody>
</table>
{Object.keys(newOrderRequests).map(key => (
<div key={key}>
<h2>{key}</h2>
<table>
<thead style={{ textAlign: "center" }}>
<tr>
<th>Tx Hash</th>
<th>Tx Height</th>
<th>Tx Text</th>
</tr>
</thead>
<tbody>
{newOrderRequests[key].map((tx, index) => (
<tr key={index}>
<td>{tx.txHash.slice(0, 15)}</td>
<td>{tx.txHeight}</td>
<td>{tx.bicoText.slice(0, 300)}</td>
</tr>
))}
</tbody>
</table>
</div>
))}
</div>
);
}
export default App;
Any help is appreciated.
Author
User Suspended
Account Strength
0%
Suspended 4 months ago
Account Age
1 year
Verified Email
Yes
Verified Flair
No
Total Karma
8
Link Karma
5,901
Comment Karma
1,059
Profile updated: 1 week ago
Posts updated: 1 year ago
Subreddit
Post Details
We try to extract some basic information from the post title. This is not
always successful or accurate, please use your best judgement and compare
these values to the post title and body for confirmation.
- Posted
- 1 year ago
- Reddit URL
- View post on reddit.com
- External URL
- reddit.com/r/reactjs/com...