A
A
Alexander Wolf2016-01-12 12:13:48
React
Alexander Wolf, 2016-01-12 12:13:48

How to give align attribute to td tag?

Hey! Actually, the question is in the subject. React simply ignores this attribute.
jsbin.com/jazeceyige/edit?html,js,output

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
Sergey Nalomenko, 2016-01-12
@mannaro

It is possible that the JSX preprocessor ignores some attributes as obsolete.
Try using CSS classes to implement the task.
<td class="centered" >Abc</td>

D
Dmitry, 2016-01-12
@soledar10

maybe for the table you need to set the width to 100%

A
ascart, 2016-01-13
@ascart

Use inline style:
https://facebook.github.io/react/tips/inline-style...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question