0
0
JRJose Romero
The loader exports an async function that returns a JavaScript object. This object contains a property called data, which is a JSON object.
Library: remix
Shortcut: remix.loader.json
import { json } from "remix";
export const loader = async () => {
return json(data);
};