imPaul
imPaul
DDeno
Created by Martin Carlsson on 3/1/2025 in #help
Deno, React, Next.js
Im pretty sure Fresh is still actively being maintained as it has its own full time maintainer About using shadcn with Fresh, yeah seems like theres not really an easy way to make it work
7 replies
DDeno
Created by Martin Carlsson on 3/1/2025 in #help
Deno, React, Next.js
—- If youre planning to write scripts or Backend APIs using TypeScript, then, Deno as your runtime (instead of Node.js) will surely helps
7 replies
DDeno
Created by Martin Carlsson on 3/1/2025 in #help
Deno, React, Next.js
React/Nextjs are heavily optimized for Node.Js ecosystem so theres really not much benefits of using Deno with it. You can try, but you’ll just end up using npm: specifiers all around your app. Thats also the reason why Deno has Fresh as its own web framework
7 replies
DDeno
Created by bAILEY on 10/25/2024 in #help
Basic CRUD API
router.post("/register", async (ctx) => {

const body = ctx.request.body({type: 'json'})
const value = await body.value
console.log(value)

// const username = user.value.get('username')
// console.log(user.get('username'))
})
router.post("/register", async (ctx) => {

const body = ctx.request.body({type: 'json'})
const value = await body.value
console.log(value)

// const username = user.value.get('username')
// console.log(user.get('username'))
})
I think you don't have to await the request's body.
5 replies