Comments (1)
Never mind in User.tsx
I shouldn't put Username
as the argument for the component. The correct code should be:
import { Username } from '../routes/index.tsx'
export default function UsernameConsumer(){
return (
<Username.Consumer>
{username => (
<span>{username}</span>
)}
</Username.Consumer>
)
} ```
from fresh.
Related Issues (20)
- context params accessed via ctx.params in the handlers need to be decoded HOT 3
- `useState()` hook stops working when `Deno.readTextFile()` is used HOT 5
- Nested Partials Ignore Append Mode When Parent Partial Uses Replace Mode
- upgrade downgrades preact and preact/signals dependencies
- Code is displayed incorrectly on fresh docs on Windows Edge browser (on recent install) HOT 5
- Dates (and other types) are serializable when using Deno KV but not islands HOT 1
- imported revive function and islands from script into browser is not taking basepath into account HOT 3
- www: syntax highlighted code of the document site is broken when the page is moved HOT 1
- Update esbuild_deno_loader to 0.9.0 for JSR support
- using nunjucks with Fresh HOT 2
- Async Components HOT 4
- Custom headers in defineRoute possible? HOT 2
- How do I turn off fresh's automatic redirect from /page/ to /page? HOT 2
- Add a way to disable trailing slash logic HOT 1
- Setting up a Fresh project to work with Deno KV is obscure HOT 1
- Setting multiple cookies before render will only send the last Set-Cookie header HOT 1
- Fresh install from the docs throws errors. HOT 2
- Plugin routes should be able to change the route config HOT 1
- Plugins should be able to specify other plugins
- `f-client-nav={false}` disappears inside islands, rendering it useless
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fresh.