OperationXen / cyberpunkCTF

A CTF framework built on python using django, graphql and react
GNU General Public License v3.0
1 stars 0 forks source link

Refactor to demonstrate functional component alternative #5

Closed mikeyhogarth closed 5 years ago

mikeyhogarth commented 5 years ago

This is just what you've already done, but as a functional component rather than a class one (I also moved that query off into another folder as it might be a cross-cutting concern that you might want to re-use).

Feel free to just close/decline this, it's just to show you what it looks like.

Like this basically: https://github.com/OperationXen/cyberpunkCTF/blob/72a4ae960de299990d0629216d986f2cd3a8d612/react_app/src/components/category_test.js