MAP JSON Generator – Preview (built in React)

As web developer I daily work with the JSON format and I often need to mock data.
There are a lot of nice JSON generators (I love JSON Generator) but I have not found something useful in order to generate a list of real coordinates.

So I have created my own MAP JSON Generator to cover all my needs (using React and Google Map Javascript API):

Start reading the Map JSON generator Documentation.

(more…)

Read More

Simple Modal in React (ES6)

snippet

In this snippet I have created a simple reusable Modal component in React in order to explore some of the basic features of this amazing library.

WHAT THE SNIPPET DOES

When the application starts the modal is opened by default. You can change this behavior simply passing opened="false" to the App component when it’s initialized.
After closing the modal you will able to open it again by clicking one of the buttons in the UI. Each button loads a different image in the modal.

(more…)

Read More