reactjs


Syntax error on comonent proxy


I tried to defined a component like
const Td = props => <td style={{"width":"33%", "border": "1px solid black"}} {...props}>
but got
Module build failed: SyntaxError: E:/MyStuff/Project2017/ReactReduxStarterKit/src/components/MainPage/FormTable/TodoList/TodoList.js: Unexpected token, expected }
const Td = props => <td style={{"width":"33%", "border": "1px solid black"}} {...props}>
class _TodoList extends React.Component{
constructor(props) {
| ^
I can not find out what was wrong with the statement and all {, } are in pair...
Maybe I need some escape?
thanks

Related Links

Send stream object parameter to csharp from javascript
ReactJS Warning: Each child in an array or iterator should have a unique “key” prop
Changing HTML attributes of Elements in Mateial-UI Library
Sync react-router with mobx state
Testing React Component with Enzyme and Mocha
How do I correctly remove event listeners in React.js?
setState in react is not working in react component
Get state of a child component
Redux saga “rootSaga has been cancelled”
Does ReactNative actual height includes border and padding?
Uncaught TypeError: action.products.reduce is not a function
Finding error in jsx
Getting error in browser console on using “externals” for excluding node_modules
ReactJS how to loop through dynamically named refs
react-router not routing to components
React App in a Child Route of an existing Web site

Categories

HOME
internet-explorer
skype-for-business
google-cloud-pubsub
botframework
compression
data-modeling
pandoc
coordinates
mediarecorder
hibernate-mapping
markdown
vsixmanifest
software-collections
minimax
angular-universal
core-data
mongodb-replica-set
popup
tag-cloud
alert
printf
legend-properties
single-page-application
connectiq
ithit-webdav-server
visual-studio-community
spock
pushpad
hierarchy
jbossfuse
opencsv
jql
restler
wunderground
ragel
repeat
kepserverex
dotnetnuke-module
tapply
compiled-query
binary-decision-diagram
rexx
pexpect
encoder
denodo
sqlproj
addressbook
fileopendialog
blackberry-webworks
mac-app-store
papyrus
qtruby
falcon
avaudiorecorder
mod
android-progressbar
imageicon
edgar
jain-sip
om
xml-simple
tokudb
pdcurses
firewire
log-analysis
mri
google-experiments
alpha-beta-pruning
pysvn
method-overloading
xcode5
unityvs
apache-pivot
novell
powershell-v1.0
xts
parallel-port
satisfiability
new-operator
object-oriented-database
ojb
caroufredsel
ia-32
nsnumber
mandelbrot
friendly-url
wpd
uikit-dynamics
pageload
generator-expression
zepto
esi
github-archive
wxperl
scsf
rjs
qvariant
netduino
rollover
iphone-maps
hp-trim

Resources

Encrypt Message