1.0.0 • Published 8 months ago

react-state-query v1.0.0

Weekly downloads
-
License
GPL-3.0
Repository
github
Last release
8 months ago

stars license supportServer forks issues

📦 Installation

  • Using yarn: yarn add react-state-query
  • Using npm: npm i react-state-query

🤓 Usage

Real-life example: https://react-state-query.glitch.me

import { useStateQuery } from "react-state-query";

function App() {
	const [value, setValue] = useStateQuery(
		"query-key",
		"default value not required",
	);

	return (
		<div>
			<input
				type="text"
				value={value}
				onChange={(e) => {
					setValue(e.target.value); // query also updated, refresh the page and see the same value
				}}
			/>
		</div>
	);
}

export default App;

📄 License

Copyright © 2023 Barış DEMİRCİ.

Distributed under the GPL-3.0 License. See LICENSE for more information.

🧦 Contributing

Feel free to use GitHub's features.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/my-feature)
  3. Run prettier and eslint (npm run format && npm run lint)
  4. Commit your Changes (git commit -m 'my awesome feature my-feature')
  5. Push to the Branch (git push origin feature/my-feature)
  6. Open a Pull Request

🔥 Show your support

Give a ⭐️ if this project helped you!

📞 Contact

1.0.0

8 months ago

0.0.1

8 months ago