eisisig / react-isolate

React Component Isolation Playground
11 stars 0 forks source link

Passing functions as props does not work #36

Open spoldman opened 8 years ago

spoldman commented 8 years ago

I'm trying to do something like this on a prop

xTicksFormat: (date) => { return moment(date).format('D MMM'); },

This dosn't work on rerender of component

eisisig commented 8 years ago

Right now the fixtures are JSON.stringifiy/parse so they loose the methods. There are ways to serialize objects with the methods. But I think this needs another way entirely...

I'd like the editor to work with JS...