codeforhuntsville / Frontier

A civic app for finding whats near me
http://codeforhuntsville.com/
MIT License
9 stars 7 forks source link

stubbing out results view #58

Open syjulian opened 8 years ago

syjulian commented 8 years ago

I stubbed out an implementation @chrisbeaman 's codepen for lists in react components. http://codepen.io/chrisbeaman/full/WvOjoM

There is only one result, and it is hard-coded. I'm not sure how data should be structured when it gets passed to a result item component. ( I have rough idea in util/results.json of how it could look )

chadxz commented 8 years ago

Your fake result is missing a comma, but otherwise looks good. You might wanna leave a comment in the home.ejs file that pulling in jquery and bootstrap js outside the bundle is just a temporary hack until the results view is finished. Ultimately we shouldn't depend on those, instead using native react components to do things like show modals and whatnot. I believe there is a react-bootstrap if you wanna go that route