You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Routing pages in Next.js way /pages/index.ts, /src/pages/index.ts, /src/pages/user/[slug].ts, /src/pages/user/[...slug].ts
api folder
access variable of dynamic routing
hotreloading
Assets (images, favicon, manifest, etc)
use env variables inside server routes
_404 and _500 page support
support layouts (layouts.(tsx|ts|js) / layouts/index(tsx|ts|js)), it returns the request to render different layouts depending the page
support middleware - middleware.(tsx|ts|js) / middleware/index.(tsx|ts|js)
support "export Head" component in pages to overwrite head content (meta, links...) on the layout, using "id"
Support websockets - websockets.(tsx|ts|js) / websockets/index.(tsx|ts|js) and add "ws" to RequestContext
Support responseHeaders function that returns the headers object, in the page level and also layout level. Useful to control the cache or add some X-headers.
ROADMAP TO 0.1 (first version) 🚀
JSX Components
server render
→client
→server action
→client
#85indicator
in server/web components #88prefetch
to improve SPA navigation + i18n translations #157renderMode
attribute to<a>
to changereactivity
(default) |transition
|native
#182Client (web components)
export const props = ['propName']
as optional to fix reactivity in web-components props when using props spread<div {...exampleProps} />
key
to unmount / mount web components when changeref
attribute to elementscreatePortal
. Portals to support shared modals, etccreateContext
, provider anduseContext
in server-components #20store
in web-components #23createContext
, provider anduseContext
in web-components #19debounce
attribute in server events (ex:onInput-debounce={400}
) #81name
,pathname
,params
,query
) in WC + support SSR #369useId
#506Server components
store.transferToClient(['key'])
to RequestContext to transfer store data to WebContext. #29encrypt
option tostore.transferToClient
#98rerenderInAction
server actions feature #73Architecture
responseHeaders
function that returns the headers object, in the page level and also layout level. Useful to control the cache or add some X-headers.sitemap.xml
according tosrc/sitemap.ts
#482Testing
render
. Supporting "Server Components" (HTML elements) and "Web Components" (custom elements). Should also support aResponse
to use it together withserveRoute
to render pages.serveRoute
. Fetch some page or API endpoint and return the response.render
andserveRoute
returns:container
andcleanup
.render
work with server actions and possible to test themrender
work with signals and custom elementsrender
should supportlocale
as option to test i18n translations in server and web componentswaitFor
to wait for an "expect" assertion to pass.userEvent
to simulate user events like click, type, hover, focus, etc.debug
(similar toconsole.log(document.documentElement.outerHTML)
but prettier and with colors in the HTML elementscleanup
method to clear the document and server actions registertoBeChecked
,toHaveAttribute
,toHaveTagName
,toHaveTextContent
,toBeInTheDocument
, etc...Brisa API
dangerHTML
helper: an alternative to ReactdangerouslySetInnerHTML
allowing HTML without creating a new nodedangerHTML
in web-componentsnavigate
util for imperative navigation #74renderToString
andrenderToReadableStream
API #124throwable.is()
,throwable.isRerender()
,throwable.isNavigate()
,throwable.isNotFound()
#376fileSystemRouter
API if you want to use in custom servercompilerWC
API #484CLI
Internationalization (i18n)
BRISA_LOCALE
cookiei18nKeys
for dynamic keys (allow regex) #56overrideMessages
to override default translations in request level to connect to external i18n services #64overrideMessages
to override default translations to connect to external i18n services #66href
andsrc
for i18n, trailingSlash, assetPrefix... #55Configuration
assetPrefix
config #3extendPlugins
#133basePath
config #146clustering
config to fork serve process for CPU core + load balancing #429external
in the configuration #451Optimizations
CSS
DX
Exports
.apk
and.ipa
#108node
(Node.js) to be more runtime-agnostic #195Next: 1.0 Routemap
The text was updated successfully, but these errors were encountered: