From 30b45d5f7caab15666948d01cfe824d895e44bdd Mon Sep 17 00:00:00 2001 From: Martti Malmi Date: Mon, 27 Sep 2021 11:51:11 +0300 Subject: [PATCH] . --- _posts/2021-9-27-gun-for-react-state-management.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_posts/2021-9-27-gun-for-react-state-management.md b/_posts/2021-9-27-gun-for-react-state-management.md index 87c2fe2..9731e94 100644 --- a/_posts/2021-9-27-gun-for-react-state-management.md +++ b/_posts/2021-9-27-gun-for-react-state-management.md @@ -12,7 +12,7 @@ Fed up with writing a ton of Redux boilerplate just to make a form input editabl There’s a better alternative: Gun.js. It makes state synchronization and persistence super easy: -``` +```js // Initialize Gun with options to make sure that the state is synced only locally const State = new Gun({multicast: false, peers: [], localStorage: true, file: ‘State.local’});