3 ms·
Hi! I'm thinking about using this for creating tests in school. How would one send state to a backend? Use refs?
by arve0 9y ago
Hi! I'm thinking about using this for creating tests in school. How would one send state to a backend? Use refs?
- mathisonian 9y agoIn that case you'd want to make a component that would post the state to the backend. You can use Idyll's variables to pass the state to the component that sends the request. For example, here is a page that uses firebase to persist state https://mathisonian.github.io/idyll/firebase/ https://mathisonian.github.io/idyll/firebase/. The custom components for that page are here https://github.com/mathisonian/idyll/tree/master/firebase/components https://github.com/mathisonian/idyll/tree/master/firebase/co...